summaryrefslogtreecommitdiff
path: root/src/plugins/diffeditor/descriptionwidgetwatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/diffeditor/descriptionwidgetwatcher.cpp')
-rw-r--r--src/plugins/diffeditor/descriptionwidgetwatcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/diffeditor/descriptionwidgetwatcher.cpp b/src/plugins/diffeditor/descriptionwidgetwatcher.cpp
index 0e310cfbcd..5b266ebe74 100644
--- a/src/plugins/diffeditor/descriptionwidgetwatcher.cpp
+++ b/src/plugins/diffeditor/descriptionwidgetwatcher.cpp
@@ -44,7 +44,7 @@ DescriptionWidgetWatcher::DescriptionWidgetWatcher(DiffEditorController *control
m_widgets.append(widget);
}
- connect(EditorManager::instance(), &EditorManager::editorOpened,
+ connect(EditorManager::instance(), &EditorManager::editorOpened, this,
[this](IEditor *editor) {
if (TextEditor::TextEditorWidget *widget = descriptionWidget(editor)) {
m_widgets.append(widget);
@@ -52,7 +52,7 @@ DescriptionWidgetWatcher::DescriptionWidgetWatcher(DiffEditorController *control
}
});
- connect(EditorManager::instance(), &EditorManager::editorAboutToClose,
+ connect(EditorManager::instance(), &EditorManager::editorAboutToClose, this,
[this](IEditor *editor) {
if (TextEditor::TextEditorWidget *widget = descriptionWidget(editor)) {
emit descriptionWidgetRemoved(widget);