diff --git a/autotests/actionstest.cpp b/autotests/actionstest.cpp index 0ab7709b5..2273d6e47 100644 --- a/autotests/actionstest.cpp +++ b/autotests/actionstest.cpp @@ -88,7 +88,7 @@ void ActionsTest::testActions() QFETCH(std::optional, resultText); QFETCH(std::optional, type); - auto cache = new ChatBarCache(); + auto cache = new ChatBarCache(this); cache->setText(command); auto result = ActionsModel::handleAction(room, cache); QCOMPARE(resultText, std::get>(result));