mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Merge pull request #5855 from Chocobo1/tray_icon_crash
Fix tray icon crash
This commit is contained in:
commit
3e12d958e9
1 changed files with 2 additions and 2 deletions
|
@ -920,7 +920,7 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Make sure the window is not minimized
|
// Make sure the window is not minimized
|
||||||
setWindowState(windowState() & (~Qt::WindowMinimized | Qt::WindowActive));
|
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
|
||||||
// Then show it
|
// Then show it
|
||||||
show();
|
show();
|
||||||
raise();
|
raise();
|
||||||
|
@ -1600,7 +1600,7 @@ void MainWindow::showConnectionSettings()
|
||||||
|
|
||||||
void MainWindow::minimizeWindow()
|
void MainWindow::minimizeWindow()
|
||||||
{
|
{
|
||||||
setWindowState(windowState() ^ Qt::WindowMinimized);
|
setWindowState(windowState() | Qt::WindowMinimized);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionExecutionLogs_triggered(bool checked)
|
void MainWindow::on_actionExecutionLogs_triggered(bool checked)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue