From 749eb17c567945effff525cd162a74661bc815f5 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Mon, 4 Dec 2023 13:42:38 +0100 Subject: [PATCH] Fix app silently closing when minimized to tray --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 5d27e43e..e6ce8401 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -170,6 +170,9 @@ int main(int argc, char *argv[]) qRegisterMetaType("const Feed*"); // "hack" to make qml understand Feed* qRegisterMetaType>("QVector"); // "hack" to make qml understand QVector of SyncUtils::Device + // Workaround to don't get the app to silently quit when minimized to tray + app.setQuitLockEnabled(false); + // Make sure that settings are saved before the application exits QObject::connect(&app, &QCoreApplication::aboutToQuit, SettingsManager::self(), &SettingsManager::save);