From 4eedf5bae855060e6f7f3e824186de55d8ac99dc Mon Sep 17 00:00:00 2001 From: DeathByDenim Date: Sun, 8 Mar 2015 14:07:07 -0400 Subject: [PATCH] Handle cancel in install dir selection properly. --- paalternativelauncher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paalternativelauncher.cpp b/paalternativelauncher.cpp index 8330c25..bcfbb63 100644 --- a/paalternativelauncher.cpp +++ b/paalternativelauncher.cpp @@ -388,7 +388,8 @@ void PAAlternativeLauncher::streamsComboBoxCurrentIndexChanged(int) void PAAlternativeLauncher::installPathButtonClicked(bool) { QString install_path = QFileDialog::getExistingDirectory(this, tr("Choose installation directory"), mInstallPathLineEdit->text(), QFileDialog::ShowDirsOnly); - mInstallPathLineEdit->setText(install_path); + if(!install_path.isEmpty()) + mInstallPathLineEdit->setText(install_path); } void PAAlternativeLauncher::downloadPushButtonClicked(bool)