forked from qt-creator/qt-creator
Fix plugin error dialog modality
When the dialog is displayed, the welcome mode becomes disabled. This happens because before the main loop begins, there is no active window, so the dialog has no parent to return focus to when it is closed. Change-Id: I2f8830c3c7bc6816d8483e05e81f5abfe5ee335f Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
d73a5c9f88
commit
4a77a31453
@@ -44,6 +44,8 @@
|
||||
#include <coreplugin/locator/locator.h>
|
||||
#include <coreplugin/coreconstants.h>
|
||||
|
||||
#include <extensionsystem/pluginerroroverview.h>
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
#include <utils/macroexpander.h>
|
||||
#include <utils/savefile.h>
|
||||
#include <utils/stringutils.h>
|
||||
@@ -217,6 +219,12 @@ void CorePlugin::extensionsInitialized()
|
||||
m_findPlugin->extensionsInitialized();
|
||||
m_locator->extensionsInitialized();
|
||||
m_mainWindow->extensionsInitialized();
|
||||
if (ExtensionSystem::PluginManager::hasError()) {
|
||||
auto errorOverview = new ExtensionSystem::PluginErrorOverview(m_mainWindow);
|
||||
errorOverview->setAttribute(Qt::WA_DeleteOnClose);
|
||||
errorOverview->setModal(true);
|
||||
errorOverview->show();
|
||||
}
|
||||
}
|
||||
|
||||
bool CorePlugin::delayedInitialize()
|
||||
|
Reference in New Issue
Block a user