Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
f27b0dda
Commit
f27b0dda
authored
6 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Do not start project recovery if single instance can't be determined
This is the safest option for now. Refs #0
parent
ae95f683
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MantidPlot/src/ApplicationWindow.cpp
+11
-4
11 additions, 4 deletions
MantidPlot/src/ApplicationWindow.cpp
with
11 additions
and
4 deletions
MantidPlot/src/ApplicationWindow.cpp
+
11
−
4
View file @
f27b0dda
...
...
@@ -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()));
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment