mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Merge pull request #5855 from Chocobo1/tray_icon_crash
Fix tray icon crash
This commit is contained in:
commit
3e12d958e9
@ -920,7 +920,7 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e)
|
||||
return;
|
||||
}
|
||||
// Make sure the window is not minimized
|
||||
setWindowState(windowState() & (~Qt::WindowMinimized | Qt::WindowActive));
|
||||
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
|
||||
// Then show it
|
||||
show();
|
||||
raise();
|
||||
@ -1600,7 +1600,7 @@ void MainWindow::showConnectionSettings()
|
||||
|
||||
void MainWindow::minimizeWindow()
|
||||
{
|
||||
setWindowState(windowState() ^ Qt::WindowMinimized);
|
||||
setWindowState(windowState() | Qt::WindowMinimized);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionExecutionLogs_triggered(bool checked)
|
||||
|
Loading…
Reference in New Issue
Block a user