Commit 1652fc86 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

ColorBrackets: Fix disconnecting wrong view

(cherry picked from commit 3b75f706)
parent 0c6341c8
......@@ -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 *)));
......
Markdown is supported
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