Remove unnecessary qml engine shutdown workaround

This commit is contained in:
Nicolas Werner 2022-01-29 17:41:14 +01:00
parent f7fd43e3f2
commit c5c892b873
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -159,12 +159,6 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QObject *parent)
MainWindow::instance()->requestActivate(); MainWindow::instance()->requestActivate();
}); });
connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, this, [this]() {
// ensure the qml context is shutdown before we destroy all other singletons
// Otherwise Qml will try to access the room list or settings, after they have been
// destroyed
});
connect( connect(
this, this,
&ChatPage::initializeViews, &ChatPage::initializeViews,