From 020b49add13f4af04721e0b57889ace2dc5a0053 Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Fri, 29 Mar 2024 09:38:54 +0300 Subject: [PATCH] Prevent app from being closed when disabling system tray icon PR #20627. Closes #20604. --- src/app/application.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/application.cpp b/src/app/application.cpp index 0244e40f1..3026b69b1 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -258,6 +258,7 @@ Application::Application(int &argc, char **argv) setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support #endif setQuitOnLastWindowClosed(false); + setQuitLockEnabled(false); QPixmapCache::setCacheLimit(PIXMAP_CACHE_SIZE); #endif