From f7fd43e3f24d5b26fad2112670e3c44bbf255359 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 29 Jan 2022 17:38:59 +0100 Subject: [PATCH] Connect quit --- src/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) 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