| 257 | } |
| 258 | |
| 259 | void JavaSettingsWidget::onJavaBrowse() |
| 260 | { |
| 261 | QString rawPath = QFileDialog::getOpenFileName(this, tr("Find Java executable")); |
| 262 | |
| 263 | // do not allow current dir - it's dirty. Do not allow dirs that don't exist |
| 264 | if (rawPath.isEmpty()) { |
| 265 | return; |
| 266 | } |
| 267 | |
| 268 | QString cookedPath = FS::NormalizePath(rawPath); |
| 269 | QFileInfo javaInfo(cookedPath); |
| 270 | if (!javaInfo.exists() || !javaInfo.isExecutable()) { |
| 271 | return; |
| 272 | } |
| 273 | m_ui->javaPathTextBox->setText(cookedPath); |
| 274 | } |
| 275 | |
| 276 | void JavaSettingsWidget::onJavaTest() |
| 277 | { |
nothing calls this directly
no test coverage detected