From 63511cd390e1c1b7d6b28edcd691c1f72a81ca48 Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 24 Jan 2019 19:24:28 +0100 Subject: Fixed ListDialog geometry not saving in Move to mod feature. --- src/mainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') 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) -- cgit v1.3.1