Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Goetz <markus@woboq.com>2016-09-13 15:34:22 +0300
committerckamm <mail@ckamm.de>2016-09-13 15:34:22 +0300
commitb7809ded23fdba6aa50b6d834b5bd5fc16865eea (patch)
tree2e7596e6db19c80d728870709613d75f594ac7fa /src/gui/owncloudgui.h
parentdfb121236cd198fb0b1ef2c4ed7ef78fed70f123 (diff)
OS X: Try to fix tray menu not updating correctly #5158 (#5177)
I even had this issue long before 2.3 that submenus suddenly disappeared. Now we refrain from updating while visible.
Diffstat (limited to 'src/gui/owncloudgui.h')
-rw-r--r--src/gui/owncloudgui.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/owncloudgui.h b/src/gui/owncloudgui.h
index 982b4825b..682944cb5 100644
--- a/src/gui/owncloudgui.h
+++ b/src/gui/owncloudgui.h
@@ -58,6 +58,8 @@ signals:
public slots:
void setupContextMenu();
void setupContextMenuIfVisible();
+ void slotContextMenuAboutToShow();
+ void slotContextMenuAboutToHide();
void slotComputeOverallSyncStatus();
void slotShowTrayMessage(const QString &title, const QString &msg);
void slotShowOptionalTrayMessage(const QString &title, const QString &msg);
@@ -102,6 +104,8 @@ private:
QPointer<LogBrowser>_logBrowser;
// tray's menu
QScopedPointer<QMenu> _contextMenu;
+ bool _contextMenuVisible;
+
QMenu *_recentActionsMenu;
QVector<QMenu*> _accountMenus;
bool _qdbusmenuWorkaround;