Skip to content

Commit

Permalink
fmk - updating version to 4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckenna committed Oct 1, 2024
1 parent dd77993 commit a07ebb9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions WorkflowApp_quoFEM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
// Written: fmckenna

#include "WorkflowApp_quoFEM.h"
#include <Utils/FileOperations.h>

#include <QPushButton>
#include <QScrollArea>
#include <QJsonArray>
Expand Down Expand Up @@ -431,9 +433,21 @@ WorkflowApp_quoFEM::setUpForApplicationRun(QString &workingDir, QString &subDir)
QDir destinationDirectory(tmpDirectory);

if(destinationDirectory.exists()) {
destinationDirectory.removeRecursively();
} else
destinationDirectory.mkpath(tmpDirectory);
if (SCUtils::isSafeToRemoveRecursivily(tmpDirectory))
destinationDirectory.removeRecursively();
else {
QString msg("The Program stopped, it was about to recursivily remove: ");
msg.append(tmpDirectory);
fatalMessage(msg);
return;
}
}

if (destinationDirectory.mkpath(tmpDirectory) == false) {
QString msg("quoFEM::setUpForApplicationRun: Could not mkdir: ");
msg += tmpDirectory;
this->fatalMessage(msg);
}

QString templateDirectory = destinationDirectory.absoluteFilePath(subDir);
destinationDirectory.mkpath(templateDirectory);
Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int main(int argc, char *argv[])
//Setting Core Application Name, Organization, and Version
QCoreApplication::setApplicationName("quoFEM");
QCoreApplication::setOrganizationName("SimCenter");
QCoreApplication::setApplicationVersion("4.0.1");
QCoreApplication::setApplicationVersion("4.0.2");

//
// set up logging of output messages for user debugging
Expand Down

0 comments on commit a07ebb9

Please sign in to comment.