| 354 | } |
| 355 | |
| 356 | void JavaSettingsWidget::checkJavaPathOnEdit(const QString& path) |
| 357 | { |
| 358 | auto realPath = FS::ResolveExecutable(path); |
| 359 | QFileInfo pathInfo(realPath); |
| 360 | if (pathInfo.baseName().toLower().contains("java")) |
| 361 | { |
| 362 | checkJavaPath(path); |
| 363 | } |
| 364 | else |
| 365 | { |
| 366 | if(!m_checker) |
| 367 | { |
| 368 | setJavaStatus(JavaStatus::NotSet); |
| 369 | } |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | void JavaSettingsWidget::checkJavaPath(const QString &path) |
| 374 | { |
nothing calls this directly
no test coverage detected