forked from qt-creator/qt-creator
Debugger: Fix crash after creator shutdown
Change-Id: I5dd95571092c9b2a9a489b87d3cd4a641b337745 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
committed by
Christian Stenger
parent
cf47294491
commit
58e9d4a93e
@@ -3256,7 +3256,6 @@ void showModuleSections(const QString &moduleName, const Sections §ions)
|
||||
|
||||
void DebuggerPluginPrivate::aboutToShutdown()
|
||||
{
|
||||
m_plugin->removeObject(this);
|
||||
disconnect(SessionManager::instance(),
|
||||
SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
|
||||
this, 0);
|
||||
@@ -3417,6 +3416,7 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
|
||||
|
||||
IPlugin::ShutdownFlag DebuggerPlugin::aboutToShutdown()
|
||||
{
|
||||
removeObject(this);
|
||||
dd->aboutToShutdown();
|
||||
return SynchronousShutdown;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user