forked from qt-creator/qt-creator
Core: Avoid segmentation fault when executing plugin unit tests
Change-Id: I80e4b73c36602542106aa3abbb1e3b147be58e6f Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
committed by
Christian Stenger
parent
776da7b5b3
commit
cd602c9f6e
@@ -242,6 +242,11 @@ bool MainWindow::isNewItemDialogRunning() const
|
|||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
{
|
{
|
||||||
|
// explicitly delete window support, because that calls methods from ICore that call methods
|
||||||
|
// from mainwindow, so mainwindow still needs to be alive
|
||||||
|
delete m_windowSupport;
|
||||||
|
m_windowSupport = 0;
|
||||||
|
|
||||||
ExtensionSystem::PluginManager::removeObject(m_shortcutSettings);
|
ExtensionSystem::PluginManager::removeObject(m_shortcutSettings);
|
||||||
ExtensionSystem::PluginManager::removeObject(m_generalSettings);
|
ExtensionSystem::PluginManager::removeObject(m_generalSettings);
|
||||||
ExtensionSystem::PluginManager::removeObject(m_toolSettings);
|
ExtensionSystem::PluginManager::removeObject(m_toolSettings);
|
||||||
@@ -372,11 +377,6 @@ void MainWindow::closeEvent(QCloseEvent *event)
|
|||||||
m_navigationWidget->closeSubWidgets();
|
m_navigationWidget->closeSubWidgets();
|
||||||
|
|
||||||
event->accept();
|
event->accept();
|
||||||
|
|
||||||
// explicitly delete window support, because that calls methods from ICore that call methods
|
|
||||||
// from mainwindow, so mainwindow still needs to be alive
|
|
||||||
delete m_windowSupport;
|
|
||||||
m_windowSupport = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::openDroppedFiles(const QStringList &files)
|
void MainWindow::openDroppedFiles(const QStringList &files)
|
||||||
|
Reference in New Issue
Block a user