Browse Source

Fix some systray issues on windows

Fix qTox not hiding when clicking on systray icon due to losing focus when clicking on the system tray

Fix the icon not being properly hidden on exit

Thanks to @toweI for reporting those issues
pull/1071/merge
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago committed by Dubslow
parent
commit
7574569b3d
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA
  1. 7
      src/widget/widget.cpp

7
src/widget/widget.cpp

@ -319,6 +319,7 @@ Widget::~Widget() @@ -319,6 +319,7 @@ Widget::~Widget()
core->saveConfiguration();
AutoUpdater::abortUpdates();
delete core;
icon->hide();
hideMainForms();
delete settingsWidget;
delete addFriendForm;
@ -609,10 +610,14 @@ void Widget::onIconClick(QSystemTrayIcon::ActivationReason reason) @@ -609,10 +610,14 @@ void Widget::onIconClick(QSystemTrayIcon::ActivationReason reason)
show();
activateWindow();
}
else if (isMinimized() || !isActiveWindow())
else if (isMinimized())
{
forceShow();
}
else
{
hide();
}
break;
}

Loading…
Cancel
Save