summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
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();
}