hplip/hp-systray-make-menu-appear-in-sni-qt-indicator-with-kde.dpatch
2013-08-26 10:37:49 +04:00

19 lines
594 B
Text

#! /bin/sh /usr/share/dpatch/dpatch-run
## hp-systray-make-menu-appear-in-sni-qt-indicator-with-kde.patch.dpatch by <till.kamppeter@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
--- a/ui4/systemtray.py
+++ b/ui4/systemtray.py
@@ -550,6 +550,9 @@
elif reason == QSystemTrayIcon.Trigger:
#print "single click"
+ self.updateMenu()
+ if not self.menu is None:
+ self.menu.popup(QCursor.pos())
pass
elif reason == QSystemTrayIcon.MiddleClick: