forked from qt-creator/qt-creator
Close with error if Core plugin is found but disabled
Change-Id: I9ec0f970da99ce7cdf171684b41fafa4b38a2629 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -437,6 +437,11 @@ int main(int argc, char **argv)
|
||||
displayError(msgCoreLoadFailure(reason));
|
||||
return 1;
|
||||
}
|
||||
if (!coreplugin->isEffectivelyEnabled()) {
|
||||
const QString reason = QCoreApplication::translate("Application", "Core plugin is disabled.");
|
||||
displayError(msgCoreLoadFailure(reason));
|
||||
return 1;
|
||||
}
|
||||
if (coreplugin->hasError()) {
|
||||
displayError(msgCoreLoadFailure(coreplugin->errorString()));
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user