diff options
author | Sky <git@bunnies.cc> | 2013-11-03 10:18:41 +0000 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-11-03 10:18:41 +0000 |
commit | 406d8511bdc7b857a200b29e7d6e2fd81eda0f8e (patch) | |
tree | 736616880b8a634e954a474ef75028998962b299 /gui | |
parent | b018aab1e936dc368090987a72a929987574b1b8 (diff) | |
parent | 09dc35688398b2dde41817828c4c657143506d3b (diff) | |
download | PrismLauncher-406d8511bdc7b857a200b29e7d6e2fd81eda0f8e.tar.gz PrismLauncher-406d8511bdc7b857a200b29e7d6e2fd81eda0f8e.tar.bz2 PrismLauncher-406d8511bdc7b857a200b29e7d6e2fd81eda0f8e.zip |
Merge branch 'develop'
Diffstat (limited to 'gui')
-rw-r--r-- | gui/mainwindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index b2fdbe16..00cfacf7 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -449,9 +449,10 @@ void MainWindow::on_actionEditInstMods_triggered() void MainWindow::closeEvent(QCloseEvent *event) { // Save the window state and geometry. - // TODO: Make this work with the new settings system. - // settings->getConfig().setValue("MainWindowGeometry", saveGeometry()); - // settings->getConfig().setValue("MainWindowState", saveState()); + + MMC->settings()->set("MainWindowState", saveState().toBase64()); + MMC->settings()->set("MainWindowGeometry", saveGeometry().toBase64()); + QMainWindow::closeEvent(event); QApplication::exit(); } |