mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 15:32:48 -07:00
Fix crash when shutting down and clicked on system tray icon
Disconnect all signals of system tray icon when shutting down. Closes #16324. PR #16328.
This commit is contained in:
parent
414361a3db
commit
a2c44dedce
1 changed files with 1 additions and 0 deletions
|
@ -1236,6 +1236,7 @@ void MainWindow::closeEvent(QCloseEvent *e)
|
||||||
#ifndef Q_OS_MACOS
|
#ifndef Q_OS_MACOS
|
||||||
if (m_systrayIcon)
|
if (m_systrayIcon)
|
||||||
{
|
{
|
||||||
|
m_systrayIcon->disconnect();
|
||||||
m_systrayIcon->setToolTip(tr("qBittorrent is shutting down..."));
|
m_systrayIcon->setToolTip(tr("qBittorrent is shutting down..."));
|
||||||
m_trayIconMenu->setEnabled(false);
|
m_trayIconMenu->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue