diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index a5fe8dcaea..1fa6a6480d 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -531,17 +531,6 @@ bool MainDialog::writeSettings() } } - if(!mGameSettings.hasMaster()) { - QMessageBox msgBox; - msgBox.setWindowTitle(tr("Error writing OpenMW configuration file")); - msgBox.setIcon(QMessageBox::Critical); - msgBox.setStandardButtons(QMessageBox::Ok); - msgBox.setText(tr("
You do not have any master files selected.

\ - Please select one and try again.
")); - msgBox.exec(); - return false; - } - // Game settings QFile file(userPath + QString("openmw.cfg")); @@ -624,6 +613,17 @@ void MainDialog::play() return; } + if(!mGameSettings.hasMaster()) { + QMessageBox msgBox; + msgBox.setWindowTitle(tr("No master file selected")); + msgBox.setIcon(QMessageBox::Warning); + msgBox.setStandardButtons(QMessageBox::Ok); + msgBox.setText(tr("
You do not have any master files selected.

\ + OpenMW will not start without a master file selected.
")); + msgBox.exec(); + return; + } + // Launch the game detached startProgram(QString("openmw"), true); qApp->quit();