mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Add a note about the bug the previous workaround was for
This commit is contained in:
parent
1c1d8c4f9e
commit
96b44de9b6
@ -164,6 +164,9 @@ class MainWindow(QMainWindow):
|
||||
return QMainWindow.event(self, ev)
|
||||
|
||||
def clone_menu(menu):
|
||||
# This is needed to workaround a bug in Qt 5.5+ and Unity. When the same
|
||||
# QAction object is used in both a QMenuBar and a QMenu, sub-menus of the
|
||||
# QMenu flicker when rendered under Unity.
|
||||
def clone_action(ac, parent):
|
||||
if ac.isSeparator():
|
||||
ans = QAction(parent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user