| 448 | } |
| 449 | |
| 450 | void JavaSettingsWidget::checkJavaPath(const QString& path) |
| 451 | { |
| 452 | if (m_checker) { |
| 453 | queuedCheck = path; |
| 454 | return; |
| 455 | } |
| 456 | auto realPath = FS::ResolveExecutable(path); |
| 457 | if (realPath.isNull()) { |
| 458 | setJavaStatus(JavaStatus::DoesNotExist); |
| 459 | return; |
| 460 | } |
| 461 | setJavaStatus(JavaStatus::Pending); |
| 462 | m_checker.reset( |
| 463 | new JavaChecker(path, "", minHeapSize(), maxHeapSize(), m_permGenSpinBox->isVisible() ? m_permGenSpinBox->value() : 0, 0)); |
| 464 | connect(m_checker.get(), &JavaChecker::checkFinished, this, &JavaSettingsWidget::checkFinished); |
| 465 | m_checker->start(); |
| 466 | } |
| 467 | |
| 468 | void JavaSettingsWidget::checkFinished(const JavaChecker::Result& result) |
| 469 | { |
nothing calls this directly
no test coverage detected