Skip to content
Permalink
Browse files

Merge PR #3025: MainWindow: only perform changeEvent's hide-in-tray l…

…ogic if there is a system tray available.
  • Loading branch information...
mkrautz committed Apr 15, 2017
2 parents 46462cd + 224d0f3 commit eb63d0b14a7bc19bfdf34f80921798f0a67cdedf
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mumble/MainWindow.cpp
@@ -512,7 +512,7 @@ void MainWindow::changeEvent(QEvent *e) {
// So, let's not do it on macOS.

#else
if (isMinimized() && g.s.bHideInTray) {
if (isMinimized() && qstiIcon->isSystemTrayAvailable() && g.s.bHideInTray) {
// Workaround http://qt-project.org/forums/viewthread/4423/P15/#50676
QTimer::singleShot(0, this, SLOT(hide()));
}

0 comments on commit eb63d0b

Please sign in to comment.
You can’t perform that action at this time.