debugger: start moving to the async shutdown infrastructure

This commit is contained in:
hjk
2010-07-15 14:01:48 +02:00
parent c336ddaedf
commit 42f326af60
2 changed files with 13 additions and 4 deletions

View File

@@ -2551,9 +2551,18 @@ ExtensionSystem::IPlugin::ShutdownFlag DebuggerPlugin::aboutToShutdown()
d->m_uiSwitcher->aboutToShutdown();
//if (d->m_engine)
// d->m_engine->shutdown();
return SynchronousShutdown;
// FIXME: Notify all engines instead.
QTimer::singleShot(0, this, SLOT(emitShutdownFinished()));
return AsynchronousShutdown;
}
void DebuggerPlugin::emitShutdownFinished()
{
emit asynchronousShutdownFinished();
}
void DebuggerPlugin::showMessage(const QString &msg, int channel, int timeout)
{
//qDebug() << "PLUGIN OUTPUT: " << channel << msg;