-
-
Save bongochong/983f3b7634e980ce0e11dbf8d2bb75bc to your computer and use it in GitHub Desktop.
qbt450tray.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 339652d2a2120d6026121e740b4ab4bf6fd81002 Mon Sep 17 00:00:00 2001 | |
From: "Vladimir Golovnev (Glassez)" <glassez@yandex.ru> | |
Date: Wed, 30 Nov 2022 09:38:44 +0300 | |
Subject: [PATCH] Destroy desktop integration at correct place | |
--- | |
src/app/application.cpp | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
diff --git a/src/app/application.cpp b/src/app/application.cpp | |
index 1b1bcfb8553..4e4e1fc7a09 100644 | |
--- a/src/app/application.cpp | |
+++ b/src/app/application.cpp | |
@@ -706,7 +706,7 @@ try | |
#ifndef DISABLE_GUI | |
UIThemeManager::initInstance(); | |
- m_desktopIntegration = new DesktopIntegration(this); | |
+ m_desktopIntegration = new DesktopIntegration; | |
m_desktopIntegration->setToolTip(tr("Loading torrents...")); | |
#ifndef Q_OS_MACOS | |
auto *desktopIntegrationMenu = new QMenu; | |
@@ -1201,6 +1201,7 @@ void Application::cleanup() | |
::ShutdownBlockReasonDestroy(reinterpret_cast<HWND>(m_window->effectiveWinId())); | |
#endif // Q_OS_WIN | |
delete m_window; | |
+ delete m_desktopIntegration; | |
UIThemeManager::freeInstance(); | |
} | |
#endif // DISABLE_GUI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment