Bookmarks: Fix connect/disconnect mismatch

This was introduced when the plugin was refactored.

Change-Id: Ieffce92a6eac55aa7932f202220d3817c59e6a1f
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-09-16 16:05:16 +02:00
parent 4aa8374dde
commit 81b4d70f1e

View File

@@ -189,8 +189,8 @@ void BookmarksPlugin::editorOpened(IEditor *editor)
void BookmarksPlugin::editorAboutToClose(IEditor *editor)
{
if (auto widget = qobject_cast<TextEditorWidget *>(editor->widget())) {
connect(widget, &TextEditorWidget::markContextMenuRequested,
this, &BookmarksPlugin::requestContextMenu);
disconnect(widget, &TextEditorWidget::markContextMenuRequested,
this, &BookmarksPlugin::requestContextMenu);
}
}