Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Oct 21, 2019
1 parent 6761c07 commit 4bddf4a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main.cpp
Expand Up @@ -315,11 +315,9 @@ int main(int pArgC, char *pArgV[])
res = 0;
}

// Keep track of our application file and directory paths (in case we need
// to restart OpenCOR)
// Keep track of our application file (in case we need to restart OpenCOR)

QString appFilePath = OpenCOR::GuiApplication::applicationFilePath();
QString appDirPath = OpenCOR::GuiApplication::applicationDirPath();

// Delete our main window

Expand Down Expand Up @@ -365,10 +363,9 @@ int main(int pArgC, char *pArgV[])
QSettings().clear();
}

// Restart OpenCOR, but without providing any of the arguments that were
// originally passed to us since we just want to restart
// Restart OpenCOR

QProcess::startDetached(appFilePath, QStringList(), appDirPath);
QProcess::startDetached(appFilePath);
}

// We are done running the GUI version of OpenCOR, so leave
Expand Down

0 comments on commit 4bddf4a

Please sign in to comment.