summaryrefslogtreecommitdiffstats
path: root/gui/settingsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/settingsdialog.cpp')
-rw-r--r--gui/settingsdialog.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/settingsdialog.cpp b/gui/settingsdialog.cpp
index b5ff8d56..fd876a97 100644
--- a/gui/settingsdialog.cpp
+++ b/gui/settingsdialog.cpp
@@ -189,3 +189,12 @@ void SettingsDialog::on_pushButton_clicked()
ui->javaPathTextBox->setText(paths.at(0));
}
+
+void SettingsDialog::on_btnBrowse_clicked()
+{
+ QString dir = QFileDialog::getOpenFileName(this, tr("Find Java executable"));
+ if(!dir.isNull())
+ {
+ ui->javaPathTextBox->setText(dir);
+ }
+}