Skip to content

Commit 82bf504

Browse files
committed
Fix message box
1 parent 9016d8b commit 82bf504

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mainwindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ QString MainWindow::find_config_file(const char *filename) {
487487
QString cfgfilepath = path + QDir::separator() + defaultCfgFilename;
488488
if (QFileInfo::exists(cfgfilepath)) return cfgfilepath;
489489
}
490-
QMessageBox(QMessageBox::Warning, "No config file not found",
491-
QStringLiteral("No default config file could be found"), QMessageBox::Ok, this);
490+
QMessageBox::warning(this, "No config file not found",
491+
QStringLiteral("No default config file could be found"), "Continue with default config");
492492
return "";
493493
}
494494

0 commit comments

Comments
 (0)