though users would prefer a new window when they pick load, that causes
problems because I don't have an easy way for the new window to be
responsible for the Mussa::analyze() call.
So currently the create new window mode will occasionally cause mussa to
hang. As a result I loading will replace the current window.
void MussaWindow::createNewAnalysis()
{
try {
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);
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());
}
} catch(mussa_error e) {
QString msg(e.what());
return;
// try to load safely
try {
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)),
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 {
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)),
Mussa *m = new Mussa;
fs::path converted_path(muway_dir.toStdString(), fs::native);
connect(m, SIGNAL(progress(const std::string&, int, int)),
void MussaSetupDialog::reject()
{
void MussaSetupDialog::reject()
{
- std::cout << "Rejected\n";