diff options
author | hjk <[email protected]> | 2013-08-29 17:17:24 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2013-08-30 11:25:51 +0200 |
commit | eb724f3772776849585be1417e90b1fb41a29698 (patch) | |
tree | 90709baa1d642b021cb81286cb34610db95d1ce8 /src/plugins/debugger/debuggerplugin.cpp | |
parent | 4a24df38a3a164c51f9cdddd566c9928a7482a0a (diff) |
EditorManager: Use interface directly instead of going through ICore
In the majority of cases we were doing that anyways, having two
ways is just needlessly confusing.
Change-Id: Ied362a702c23beee528368d74df1f2aabe5807f8
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index fec22e0a445..5aa338b1655 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -3223,10 +3223,9 @@ void DebuggerPluginPrivate::extensionsInitialized() SLOT(updateDebugActions())); // EditorManager - QObject *editorManager = ICore::editorManager(); - connect(editorManager, SIGNAL(editorOpened(Core::IEditor*)), + connect(EditorManager::instance(), SIGNAL(editorOpened(Core::IEditor*)), SLOT(editorOpened(Core::IEditor*))); - connect(editorManager, SIGNAL(currentEditorChanged(Core::IEditor*)), + connect(EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)), SLOT(updateBreakMenuItem(Core::IEditor*))); // Application interaction |