Skip to content

Commit 3f481ad

Browse files
authored
Fix incorrect searching for supplied config file.
1 parent 6ab0e08 commit 3f481ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ QString MainWindow::replaceFilename(QString fullfile) const {
470470
QString MainWindow::find_config_file(const char *filename) {
471471
if (filename) {
472472
QString qfilename(filename);
473-
if (QFileInfo::exists(qfilename))
473+
if (!QFileInfo::exists(qfilename))
474474
QMessageBox(QMessageBox::Warning, "Config file not found",
475475
QStringLiteral("The file '%1' doesn't exist").arg(qfilename), QMessageBox::Ok,
476476
this);

0 commit comments

Comments
 (0)