diff options
| author | Tannin <devnull@localhost> | 2015-05-11 21:39:56 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-05-11 21:39:56 +0200 |
| commit | dbdc2538f98147c7661cac00fe135df59aeb04e3 (patch) | |
| tree | b8c14280cc4b7ba6398612e9b5350ca63934e91e /src/mainwindow.cpp | |
| parent | 5a908442d646b5f3dbf7d22fc2331c8cc2b0d15a (diff) | |
bugfix: upon closing the profiles dialog, the profile was changed to the
top-most profile and back
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 10af1b27..b5347d4d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1011,11 +1011,11 @@ void MainWindow::on_profileBox_currentIndexChanged(int index) }
if (ui->profileBox->currentIndex() == 0) {
- ProfilesDialog(m_GamePath, this).exec();
+ ui->profileBox->setCurrentIndex(previousIndex);
+ ProfilesDialog(ui->profileBox->currentText(), this).exec();
while (!refreshProfiles()) {
- ProfilesDialog(m_GamePath, this).exec();
+ ProfilesDialog(ui->profileBox->currentText(), this).exec();
}
- ui->profileBox->setCurrentIndex(previousIndex);
} else {
activateSelectedProfile();
}
|
