slightly improved call-up of mupp from musredit. If cancelling the db-dialog mupp will quit, but only at startup.

This commit is contained in:
suter_a 2019-11-09 09:27:42 +01:00
parent ca5bbbe1e0
commit af5a6e37d1

View File

@ -371,8 +371,12 @@ PmuppGui::PmuppGui( QStringList fln, QWidget *parent, Qt::WindowFlags f )
setCentralWidget(fCentralWidget); setCentralWidget(fCentralWidget);
// in case there is no db/dat file list given open the db/dat file open menu automatically. // in case there is no db/dat file list given open the db/dat file open menu automatically.
if (fln.size() == 0) if (fln.size() == 0) {
fileOpen(); fileOpen();
if (fParamDataHandler->GetNoOfCollections() == 0) { // file open dialog has been cancelled
exit(0);
}
}
} }
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------