forked from qt-creator/qt-creator
EditorManager: Use static pattern, adjust surrounding code
Change-Id: I3255a0150cd9a730336456c5a9f986eb74fefbff Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -160,10 +160,8 @@ void TodoItemsProvider::setupStartupProjectBinding()
|
||||
|
||||
void TodoItemsProvider::setupCurrentEditorBinding()
|
||||
{
|
||||
Core::EditorManager *editorManager = Core::EditorManager::instance();
|
||||
|
||||
m_currentEditor = Core::EditorManager::currentEditor();
|
||||
connect(editorManager, SIGNAL(currentEditorChanged(Core::IEditor*)),
|
||||
connect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)),
|
||||
SLOT(currentEditorChanged(Core::IEditor*)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user