Commit 42f326af authored by hjk's avatar hjk
Browse files

debugger: start moving to the async shutdown infrastructure

parent c336ddae
......@@ -2551,9 +2551,18 @@ ExtensionSystem::IPlugin::ShutdownFlag DebuggerPlugin::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;
......@@ -35,7 +35,6 @@
#include <extensionsystem/iplugin.h>
class QAbstractItemView;
class QIcon;
class QMessageBox;
......@@ -119,8 +118,9 @@ signals:
friend class Internal::DebuggerEngine;
friend class Internal::DebuggerListener
friend class Internal::DebuggerListener;
Q_SLOT void emitShutdownFinished();
bool initialize(const QStringList &arguments, QString *errorMessage);
ShutdownFlag aboutToShutdown();
void extensionsInitialized();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment