Skip to content

Commit

Permalink
Handle cancel in install dir selection properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeathByDenim committed Mar 8, 2015
1 parent 4804f67 commit 4eedf5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paalternativelauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4eedf5b

Please sign in to comment.