GH-2050 fix cancel button in file browse dialogs filling text fields

This commit is contained in:
Petr Mrázek committed 2017-12-03 19:21:04 +01:00
1 parent 95e6f37d39
commit 4bae6fe491
7 files changed
+19 -22

No files matched your search

+1 -1
View File
@@ -263,7 +263,7 @@ void JavaWizardPage::on_javaBrowseBtn_clicked()
filter = "Java (java)";
#endif
QString raw_path = QFileDialog::getOpenFileName(this, tr("Find Java executable"), QString(), filter);
if(raw_path.isNull())
if(raw_path.isEmpty())
{
return;
}