mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Fix crash when restoring from tray. Closes #5854.
This commit is contained in:
parent
07f141af2e
commit
59942531df
1 changed files with 1 additions and 1 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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue