summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2016-11-01 10:48:17 (GMT)
committerDavid Faure <faure@kde.org>2016-11-01 10:48:17 (GMT)
commitec172b8f6b39a056326751f26ce81af664f0837f (patch)
tree9eda795eda60f8cab30f7fe79d167b53dc0e1e43
parent1d750940de9de26a6e4a93d578ce1360305aaf52 (diff)
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
-rw-r--r--src/TerminalDisplay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index 3ef9ddb..07adaa7 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -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);