Commit 3b75f706 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

ColorBrackets: Fix disconnecting wrong view

parent 7174ebb0
Pipeline #112830 passed with stage
in 4 minutes and 16 seconds
......@@ -102,8 +102,8 @@ void RainbowParenPluginView::viewChanged(KTextEditor::View *view)
{
// disconnect and clear previous doc stuff
if (m_activeView) {
disconnect(view, &KTextEditor::View::verticalScrollPositionChanged, this, &RainbowParenPluginView::rehighlight);
disconnect(view, &KTextEditor::View::textInserted, this, &RainbowParenPluginView::rehighlight);
disconnect(m_activeView, &KTextEditor::View::verticalScrollPositionChanged, this, &RainbowParenPluginView::rehighlight);
disconnect(m_activeView, &KTextEditor::View::textInserted, this, &RainbowParenPluginView::rehighlight);
auto doc = m_activeView->document();
disconnect(doc, SIGNAL(aboutToDeleteMovingInterfaceContent(KTextEditor::Document *)), this, SLOT(clearRanges(KTextEditor::Document *)));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment