summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-06-14 09:17:57 +0200
committerTannin <devnull@localhost>2014-06-14 09:17:57 +0200
commit5b3cdaa83bf0e6651bb2f175f810ab7f311ca232 (patch)
tree716ae948ab1c94f7cea0260c9d379c5b50c45b45
parent5a4b6e70fd815c9052ff71a4244bdeb707e92ba1 (diff)
bugfix: the warning dialog upon changing the mod directory didn't have an effect, the process couldn't be canceled
-rw-r--r--src/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index d63aabe4..b8c02c69 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -680,7 +680,7 @@ void Settings::query(QWidget *parent)
(QMessageBox::question(NULL, tr("Confirm"), tr("Changing the mod directory affects all your profiles! "
"Mods not present (or named differently) in the new location will be disabled in all profiles. "
"There is no way to undo this unless you backed up your profiles manually. Proceed?"),
- QMessageBox::Yes | QMessageBox::No))) {
+ QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes)) {
m_Settings.setValue("Settings/mod_directory", QDir::toNativeSeparators(modDirEdit->text()));
}
}