diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-01-24 19:24:28 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-01-24 19:24:28 +0100 |
| commit | 63511cd390e1c1b7d6b28edcd691c1f72a81ca48 (patch) | |
| tree | e728263299fd1a56a78ad42a196dad8f95412386 /src/mainwindow.cpp | |
| parent | 75d29f7e0327f57bfa82fa554091591857ab404f (diff) | |
Fixed ListDialog geometry not saving in Move to mod feature.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a2671829..5109c425 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3518,8 +3518,12 @@ void MainWindow::moveOverwriteContentToExistingMod() dialog.setWindowTitle("Select a mod...");
dialog.setChoices(mods);
- dialog.restoreGeometry(settings.value(key).toByteArray());
+
+ if (settings.contains(key)) {
+ dialog.restoreGeometry(settings.value(key).toByteArray());
+ }
if (dialog.exec() == QDialog::Accepted) {
+
QString result = dialog.getChoice();
if (!result.isEmpty()) {
@@ -3541,6 +3545,7 @@ void MainWindow::moveOverwriteContentToExistingMod() doMoveOverwriteContentToMod(modAbsolutePath);
}
}
+ settings.setValue(key, dialog.saveGeometry());
}
void MainWindow::doMoveOverwriteContentToMod(const QString &modAbsolutePath)
|
