Commit 6edfe5e8 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Pass in doc instead of 'this' to ensure correct lifetime management

parent 21e517ad
......@@ -997,7 +997,7 @@ public:
}
mr->setView(view);
mr->setAttribute(attr);
QTimer::singleShot(1000, this, [mr](){
QTimer::singleShot(1000, doc, [mr] {
mr->setRange(KTextEditor::Range::invalid());
delete mr;
});
......
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