Skip to content

Commit

Permalink
Merge pull request #243 from emanuele-f/window_popup_fix
Browse files Browse the repository at this point in the history
Disable notification click handler to avoid unexpected popup
  • Loading branch information
sieren authored Jun 2, 2019
2 parents 3168f48 + 5b6fd60 commit 4144896
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sources/qst/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ Window::Window()
createTrayIcon();

connect(mpTestConnectionButton, SIGNAL(clicked()), this, SLOT(testURL()));
connect(mpTrayIcon, SIGNAL(messageClicked()), this, SLOT(messageClicked()));
/* Commented to avoid showing the program window when a user clicks a
* notification of another program. But this disables click handler for this
* program notifications too. */
//connect(mpTrayIcon, SIGNAL(messageClicked()), this, SLOT(messageClicked()));
connect(mpTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason)));
connect(mpAuthCheckBox, SIGNAL(stateChanged(int)), this,
Expand Down

0 comments on commit 4144896

Please sign in to comment.