Fix Analyzer-related exit crash on Windows.

This commit is contained in:
Friedemann Kleint
2011-04-05 11:35:15 +02:00
parent 43ab73edac
commit 4bb3d2e890

View File

@@ -151,8 +151,10 @@ ExtensionSystem::IPlugin::ShutdownFlag AnalyzerPlugin::aboutToShutdown()
// Disconnect from signals that are not needed during shutdown
// Hide UI (if you add UI that is not in the main window directly)
QSettings *settings = Core::ICore::instance()->settings();
settings->setValue(lastActiveToolC, d->m_manager->currentTool()->id());
if (const IAnalyzerTool *tool = d->m_manager->currentTool()) {
QSettings *settings = Core::ICore::instance()->settings();
settings->setValue(QLatin1String(lastActiveToolC), tool->id());
}
d->m_manager->shutdown();
return SynchronousShutdown;