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