[utilities/konsole] src/session: SessionController: use explicit lambda capture of "this" with [=] in C++20
Friedrich W. H. Kossebau <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 16e366b58147ac44423abc360745926752c377b4 by Friedrich W. H. Kossebau.
Committed on 05/08/2026 at 17:14.
Pushed by kossebau into branch 'master'.
SessionController: use explicit lambda capture of "this" with [=] in C++20
M +2 -2 src/session/SessionController.cpp
https://invent.kde.org/utilities/konsole/-/commit/16e366b58147ac44423abc360745926752c377b4
diff --git a/src/session/SessionController.cpp b/src/session/SessionController.cpp
index 36688072e..33b087bb2 100644
--- a/src/session/SessionController.cpp
+++ b/src/session/SessionController.cpp
@@ -1103,7 +1103,7 @@ void SessionController::renameSession()
dialog->focusTabTitleText();
}
- connect(dialog, &QDialog::accepted, this, [=]() {
+ connect(dialog, &QDialog::accepted, this, [=, this]() {
const QString tabTitle = dialog->tabTitleText();
const QString remoteTabTitle = dialog->remoteTabTitleText();
const QColor tabColor = dialog->color();
@@ -1427,7 +1427,7 @@ void SessionController::copyInputToSelectedTabs(QList<Session *> *sessions)
dialog->setMasterSession(session());
dialog->setChosenSessions(currentGroup);
- connect(dialog, &QDialog::accepted, this, [=]() {
+ connect(dialog, &QDialog::accepted, this, [=, this]() {
QSet<Session *> newGroup = dialog->chosenSessions();
newGroup.remove(session());
update(newGroup, currentGroup);