diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 1c915fba..ab2de2ba 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -286,6 +286,8 @@ MainWindow::registerQmlTypes() engine()->addImageProvider(QStringLiteral("blurhash"), new BlurhashProvider()); if (JdenticonProvider::isAvailable()) engine()->addImageProvider(QStringLiteral("jdenticon"), new JdenticonProvider()); + + QObject::connect(engine(), &QQmlEngine::quit, &QGuiApplication::quit); } void