From ab789e37e1136465c8bfdb1ccb1b3aee6a9f52cf Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Mon, 14 Dec 2020 03:45:03 +0300 Subject: [PATCH] Wizard: fix "file is already opened" warning --- apps/wizard/mainwizard.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wizard/mainwizard.cpp b/apps/wizard/mainwizard.cpp index 160c6f721..d92f5b029 100644 --- a/apps/wizard/mainwizard.cpp +++ b/apps/wizard/mainwizard.cpp @@ -157,6 +157,8 @@ void Wizard::MainWizard::setupGameSettings() mGameSettings.readUserFile(stream); } + file.close(); + // Now the rest QStringList paths; paths.append(userPath + QLatin1String("openmw.cfg"));