Ver código fonte

Systray: Workaround for issue with Qt 5.5.0 #3656

Christian Kamm 10 anos atrás
pai
commit
3414b58b99
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      src/gui/owncloudgui.cpp

+ 8 - 0
src/gui/owncloudgui.cpp

@@ -431,6 +431,14 @@ void ownCloudGui::setupContextMenu()
         _contextMenu->addAction(_actionLogin);
     }
     _contextMenu->addAction(_actionQuit);
+
+    // Workaround for #3656, Qt 5.5.0 + dbus based tray integration.
+#ifdef Q_OS_LINUX
+#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
+    _tray->hide();
+    _tray->show();
+#endif
+#endif
 }