aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorDavid Schulz <[email protected]>2014-10-28 08:26:25 +0100
committerChristian Stenger <[email protected]>2014-10-28 09:26:33 +0100
commitcf472944919d50bfd6955830acf0c9d37167b5af (patch)
treed5f88ffcd10521e383aebff85fa59bbae92a0092 /src/plugins/debugger/debuggerplugin.cpp
parentd848a1e22bcb371a7b34247a927a7ac017c74328 (diff)
Debugger: Fix attach external application.
Change-Id: I61660a3632328ddf87f5689dea00e8c132c5636c Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index ffc0e4d77ac..67e7969a459 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1151,7 +1151,6 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(DebuggerPlugin *plugin) :
m_dummyEngine(0),
m_globalDebuggerOptions(new GlobalDebuggerOptions)
{
- setObjectName(QLatin1String("DebuggerCore"));
qRegisterMetaType<WatchData>("WatchData");
qRegisterMetaType<ContextData>("ContextData");
qRegisterMetaType<DebuggerStartParameters>("DebuggerStartParameters");
@@ -2538,8 +2537,6 @@ void DebuggerPluginPrivate::extensionsInitialized()
connect(ICore::instance(), SIGNAL(coreAboutToClose()), this, SLOT(coreShutdown()));
- m_plugin->addObject(this);
-
const Context globalcontext(CC::C_GLOBAL);
const Context cppDebuggercontext(C_CPPDEBUGGER);
const Context cppeditorcontext(CppEditor::Constants::CPPEDITOR_ID);
@@ -3384,7 +3381,8 @@ QSharedPointer<Internal::GlobalDebuggerOptions> globalDebuggerOptions()
DebuggerPlugin::DebuggerPlugin()
{
- setObjectName(QLatin1String("DebuggerCore"));
+ setObjectName(QLatin1String("DebuggerPlugin"));
+ addObject(this);
dd = new DebuggerPluginPrivate(this);
}