diff options
author | Stiepen <stiepen22@gmx.de> | 2013-07-14 20:26:53 +0200 |
---|---|---|
committer | Stiepen <stiepen22@gmx.de> | 2013-07-14 20:26:53 +0200 |
commit | ce253ded0e0d2ae90a971c2e074d561f5e7baeb2 (patch) | |
tree | d44cbbd0773b0ab813bc65756d316bffae53942b /gui/mainwindow.cpp | |
parent | 33b9b25da7d3d29f949c9418295de257d437c9f8 (diff) | |
download | PrismLauncher-ce253ded0e0d2ae90a971c2e074d561f5e7baeb2.tar.gz PrismLauncher-ce253ded0e0d2ae90a971c2e074d561f5e7baeb2.tar.bz2 PrismLauncher-ce253ded0e0d2ae90a971c2e074d561f5e7baeb2.zip |
Added Per-Instance settings
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r-- | gui/mainwindow.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 8ba988c5..0b592cf0 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -553,3 +553,19 @@ void MainWindow::on_actionChangeInstLWJGLVersion_triggered() } } + +void MainWindow::on_actionInstanceSettings_triggered() +{ + if (view->selectionModel()->selectedIndexes().count() < 1) + return; + + Instance *inst = selectedInstance(); + SettingsObject *s; + s = &inst->settings(); + InstanceSettings *settings = new InstanceSettings (this); + settings->loadSettings(s); + if (settings->exec()) { + settings->applySettings(s); + } + delete settings; +} |