From ccfd011df667dcc1507b3049104dbcc9260eef9e Mon Sep 17 00:00:00 2001 From: Pieter van der Kloet Date: Tue, 6 Sep 2011 02:00:18 +0200 Subject: [PATCH] Modified write function to always use user location for openmw.cfg --- apps/launcher/maindialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index 498f775cb6..81acb8bbf9 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -313,8 +313,9 @@ void MainDialog::writeConfig() QStringList dataFiles = mDataFilesPage->selectedMasters(); dataFiles.append(mDataFilesPage->checkedPlugins()); - // Open the config as a QFile - QFile file(mGameConfig->fileName()); + // Open the config as a QFile + QFile file(QString::fromStdString(Files::getPath(Files::Path_ConfigUser, + "openmw", "openmw.cfg"))); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { // File cannot be opened or created