Changeset 817:bd5fc573e675 for src


Ignore:
Timestamp:
09/25/16 06:33:10 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The popup menu producer can be None (re #307).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/flightlist.py

    r816 r817  
    154154    def _buttonPressEvent(self, widget, event):
    155155        """Called when a mouse button is pressed or released."""
    156         if event.type!=EVENT_BUTTON_PRESS or event.button!=3:
     156        if event.type!=EVENT_BUTTON_PRESS or event.button!=3 or \
     157           self._popupMenuProducer is None:
    157158            return
    158159
Note: See TracChangeset for help on using the changeset viewer.