diff --git a/autotests/tabbox/test_tabbox_clientmodel.cpp b/autotests/tabbox/test_tabbox_clientmodel.cpp index 63854e966..14f637c65 100644 --- a/autotests/tabbox/test_tabbox_clientmodel.cpp +++ b/autotests/tabbox/test_tabbox_clientmodel.cpp @@ -74,7 +74,7 @@ void TestTabBoxClientModel::testCreateClientListActiveClientNotInFocusChain() // for that we use the closeWindow of the MockTabBoxHandler which // removes the Client from the Focus Chain but leaves the active window as it is QSharedPointer clientOwner = client.toStrongRef(); - tabboxhandler.closeWindow(client.data()); + tabboxhandler.closeWindow(clientOwner.data()); clientModel->createClientList(); QCOMPARE(clientModel->rowCount(), 1); }