On Fri, Jul 10, 2009 at 2:44 PM, Ville M. Vainio<[email protected]> wrote:
> Can you try something? > > At qtGui.py, line 5438. Try changing menu.exec_ to menu.popup. > > http://idlebox.net/2006/apidocs/qt-x11-opensource-4.2.1.zip/qmenu.html#popup > > You may need to shove the menu to a global var (or self.qtmenu, or > something) to avoid it being garbage collected. The exact change is: === modified file 'leo/plugins/qtGui.py' --- leo/plugins/qtGui.py 2009-07-08 13:32:06 +0000 +++ leo/plugins/qtGui.py 2009-07-10 16:01:06 +0000 @@ -6121,7 +6121,8 @@ continue h(c,p,menu) - a = menu.exec_(menuPos) + a = menu.popup(menuPos) + self._contextmenu = menu This works fine on Linux (but so did the old exec_) ;-) -- Ville M. Vainio http://tinyurl.com/vainio --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
