Skip to content
Snippets Groups Projects
Commit f27b0dda authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Do not start project recovery if single instance can't be determined

This is the safest option for now.
Refs #0
parent ae95f683
No related merge requests found
......@@ -16638,10 +16638,17 @@ void ApplicationWindow::onAboutToStart() {
// Make sure we see all of the startup messages
resultsLog->scrollToTop();
 
// Kick off project recovery
// but only if we are the only instance currently running
if (!Process::isAnotherInstanceRunning())
checkForProjectRecovery();
// Kick off project recovery iff we are able to determine if we are the only
// instance currently running
try {
if (!Process::isAnotherInstanceRunning()) {
checkForProjectRecovery();
}
} catch (std::runtime_error &exc) {
g_log.warning("Unable to determine if other MantidPlot processes are "
"running. Project recovery is disabled. Error msg: " +
std::string(exc.what()));
}
}
 
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment