| 228 | } |
| 229 | |
| 230 | void JavaSettingsWidget::onJavaBrowse() |
| 231 | { |
| 232 | QString rawPath = QFileDialog::getOpenFileName(this, tr("Find Java executable")); |
| 233 | |
| 234 | // do not allow current dir - it's dirty. Do not allow dirs that don't exist |
| 235 | if (rawPath.isEmpty()) { |
| 236 | return; |
| 237 | } |
| 238 | |
| 239 | QString cookedPath = FS::NormalizePath(rawPath); |
| 240 | QFileInfo javaInfo(cookedPath); |
| 241 | if (!javaInfo.exists() || !javaInfo.isExecutable()) { |
| 242 | return; |
| 243 | } |
| 244 | m_ui->javaPathTextBox->setText(cookedPath); |
| 245 | } |
| 246 | |
| 247 | void JavaSettingsWidget::onJavaTest() |
| 248 | { |
nothing calls this directly
no test coverage detected