forked from qt-creator/qt-creator
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:
@@ -189,7 +189,7 @@ void BookmarksPlugin::editorOpened(IEditor *editor)
|
||||
void BookmarksPlugin::editorAboutToClose(IEditor *editor)
|
||||
{
|
||||
if (auto widget = qobject_cast<TextEditorWidget *>(editor->widget())) {
|
||||
connect(widget, &TextEditorWidget::markContextMenuRequested,
|
||||
disconnect(widget, &TextEditorWidget::markContextMenuRequested,
|
||||
this, &BookmarksPlugin::requestContextMenu);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user