Commit ec172b8f authored by David Faure's avatar David Faure

Pass receiver as 3rd arg in qt5-style-connect, to avoid crashes when the receiver is deleted.

Testcase: splitting (ctrl+shift+'(') and then ctrl+shift+O
(didn't crash every time, but valgrind was clear)

CCMAIL: martin.sandsmark@kde.org
parent 1d750940
......@@ -117,10 +117,10 @@ void TerminalDisplay::setScreenWindow(ScreenWindow* window)
connect(_screenWindow.data() , &Konsole::ScreenWindow::outputChanged , this , &Konsole::TerminalDisplay::updateLineProperties);
connect(_screenWindow.data() , &Konsole::ScreenWindow::outputChanged , this , &Konsole::TerminalDisplay::updateImage);
connect(_screenWindow.data() , &Konsole::ScreenWindow::currentResultLineChanged , this , &Konsole::TerminalDisplay::updateImage);
connect(_screenWindow.data(), &Konsole::ScreenWindow::outputChanged, [this]() {
connect(_screenWindow.data(), &Konsole::ScreenWindow::outputChanged, this, [this]() {
_filterUpdateRequired = true;
});
connect(_screenWindow.data(), &Konsole::ScreenWindow::scrolled, [this]() {
connect(_screenWindow.data(), &Konsole::ScreenWindow::scrolled, this, [this]() {
_filterUpdateRequired = true;
});
_screenWindow->setWindowLines(_lines);
......
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