| 255 | } |
| 256 | |
| 257 | void JavaSettingsWidget::on_javaBrowseBtn_clicked() |
| 258 | { |
| 259 | QString filter; |
| 260 | #if defined Q_OS_WIN32 |
| 261 | filter = "Java (javaw.exe)"; |
| 262 | #else |
| 263 | filter = "Java (java)"; |
| 264 | #endif |
| 265 | QString raw_path = QFileDialog::getOpenFileName(this, tr("Find Java executable"), QString(), filter); |
| 266 | if(raw_path.isEmpty()) |
| 267 | { |
| 268 | return; |
| 269 | } |
| 270 | QString cooked_path = FS::NormalizePath(raw_path); |
| 271 | m_javaPathTextBox->setText(cooked_path); |
| 272 | checkJavaPath(cooked_path); |
| 273 | } |
| 274 | |
| 275 | void JavaSettingsWidget::on_javaStatusBtn_clicked() |
| 276 | { |
nothing calls this directly
no test coverage detected