Ignore:
Timestamp:
03/01/15 18:25:32 (10 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The fault updating operations are put into the main queue (re #248)

File:
1 edited

Legend:

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

    r605 r606  
    595595        """Add a fault to the list of faults."""
    596596        faultText = formatFlightLogLine(timestampString, text).strip()
    597         self._flightInfo.addFault(id, faultText)
     597        gobject.idle_add(self._flightInfo.addFault, id, faultText)
    598598
    599599    def updateFault(self, id, timestampString, text):
    600600        """Update a fault in the list of faults."""
    601601        faultText = formatFlightLogLine(timestampString, text).strip()
    602         self._flightInfo.updateFault(id, faultText)
     602        gobject.idle_add(self._flightInfo.updateFault, id, faultText)
    603603
    604604    def clearFault(self, id):
    605605        """Clear a fault in the list of faults."""
    606         self._flightInfo.clearFault(id)
     606        gobject.idle_add(self._flightInfo.clearFault, id)
    607607
    608608    def _removeFlightLogLine(self, index):
Note: See TracChangeset for help on using the changeset viewer.