diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index 2982a30f7..637017ce8 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -329,6 +329,7 @@ bool Launcher::MainDialog::setupGameSettings() stream.setCodec(QTextCodec::codecForName("UTF-8")); mGameSettings.readUserFile(stream); + file.close(); } // Now the rest - priority: user > local > global @@ -353,8 +354,8 @@ bool Launcher::MainDialog::setupGameSettings() stream.setCodec(QTextCodec::codecForName("UTF-8")); mGameSettings.readFile(stream); + file.close(); } - file.close(); } return true;