diff mbox series

[16/34] kernelshark: Add receiver object to connect() call

Message ID 20240114171723.14092-17-dev@benjarobin.fr (mailing list archive)
State Accepted
Commit eb8385af7c6f3d80ac519b7a19a54e1c57d35f34
Headers show
Series Fix kernelshark issues introduced by the migration to Qt6 | expand

Commit Message

Benjamin ROBIN Jan. 14, 2024, 5:17 p.m. UTC
When calling a lambda, this is recommended to pass the receiver object

Signed-off-by: Benjamin ROBIN <dev@benjarobin.fr>
---
 src/KsTraceViewer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/KsTraceViewer.cpp b/src/KsTraceViewer.cpp
index 5eec312..5e8e63f 100644
--- a/src/KsTraceViewer.cpp
+++ b/src/KsTraceViewer.cpp
@@ -139,7 +139,7 @@  KsTraceViewer::KsTraceViewer(QWidget *parent)
 		}
 	};
 	connect(&_selectionModel,	&QItemSelectionModel::selectionChanged,
-		lamSelectionChanged);
+		this,			lamSelectionChanged);
 
 	_searchFSM.placeInToolBar(&_toolbar);