void MussaWindow::createNewAnalysis()
{
try {
+ // ideally we should open a new window if there's an analysis
+ // but this should work for the moment.
+ if (not isClearingAnalysisSafe()) return;
+
if (setup_analysis_dialog.exec()) {
Mussa *m = 0;
m = setup_analysis_dialog.getMussa();
setAnalysis(m);
- } else {
- std::cout << "New mussa exp. aborted!\n";
}
} catch(mussa_error e) {
QString msg(e.what());
return;
// try to load safely
try {
+ // ideally we should open a new window if there's an analysis
+ // but this should work for the moment.
+ if (not isClearingAnalysisSafe()) return;
+
Mussa *m = new Mussa;
fs::path converted_path(mupa_path.toStdString(), fs::native);
connect(m, SIGNAL(progress(const std::string&, int, int)),
return;
// try to safely load
try {
+ // ideally we should open a new window if there's an analysis
+ // but this should work for the moment.
+ if (not isClearingAnalysisSafe()) return;
+
Mussa *m = new Mussa;
fs::path converted_path(muway_dir.toStdString(), fs::native);
connect(m, SIGNAL(progress(const std::string&, int, int)),