From dbdc2538f98147c7661cac00fe135df59aeb04e3 Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 11 May 2015 21:39:56 +0200 Subject: bugfix: upon closing the profiles dialog, the profile was changed to the top-most profile and back --- src/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mainwindow.cpp') 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(); } -- cgit v1.3.1