Ensure InTray is always set when window is closed
...and not only by click on tray icon
This commit is contained in:
parent
c89c8f8978
commit
122db3c5ac
1 changed files with 1 additions and 1 deletions
|
|
@ -2149,7 +2149,6 @@ void WpaGui::trayActivated(QSystemTrayIcon::ActivationReason how) {
|
|||
case QSystemTrayIcon::Trigger:
|
||||
if (isVisible()) {
|
||||
close();
|
||||
tally.insert(InTray);
|
||||
} else {
|
||||
show();
|
||||
activateWindow();
|
||||
|
|
@ -2393,6 +2392,7 @@ void WpaGui::closeEvent(QCloseEvent* event) {
|
|||
tally.insert(AckTrayIcon);
|
||||
}
|
||||
|
||||
tally.insert(InTray);
|
||||
event->accept();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue