forked from qt-creator/qt-creator
Android: Add output about JDK path issues
Change-Id: Ib72c5e8e2e23aa1f24d5181a060c72aaa2006d37 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "androidtr.h"
|
||||
|
||||
#include <coreplugin/dialogs/ioptionspage.h>
|
||||
#include <coreplugin/messagemanager.h>
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
|
||||
@@ -361,8 +362,10 @@ AndroidSettingsWidget::AndroidSettingsWidget()
|
||||
m_openJdkLocationPathChooser->setValidationFunction([](const QString &s) {
|
||||
return Utils::asyncRun([s]() -> expected_str<QString> {
|
||||
expected_str<void> test = testJavaC(FilePath::fromUserInput(s));
|
||||
if (!test)
|
||||
if (!test) {
|
||||
Core::MessageManager::writeSilently(test.error());
|
||||
return make_unexpected(test.error());
|
||||
}
|
||||
return s;
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user