Prevent app from being closed when disabling system tray icon

PR #20627.
Closes #20604.
This commit is contained in:
Vladimir Golovnev 2024-03-29 09:38:54 +03:00 committed by GitHub
parent f20467889d
commit f5cac13979
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -251,6 +251,7 @@ Application::Application(int &argc, char **argv)
#if !defined(DISABLE_GUI) #if !defined(DISABLE_GUI)
setDesktopFileName(u"org.qbittorrent.qBittorrent"_s); setDesktopFileName(u"org.qbittorrent.qBittorrent"_s);
setQuitOnLastWindowClosed(false); setQuitOnLastWindowClosed(false);
setQuitLockEnabled(false);
QPixmapCache::setCacheLimit(PIXMAP_CACHE_SIZE); QPixmapCache::setCacheLimit(PIXMAP_CACHE_SIZE);
#endif #endif