Ignore:
Timestamp:
12/24/22 08:39:53 (2 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The Next button on the flight selection page can only be sensitive if there is at least on flight

File:
1 edited

Legend:

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

    r1055 r1071  
    12181218        """Update the sensitivity of the Next button."""
    12191219        sensitive = len(self._flightList.selectedIndexes)==1 and \
    1220           not self._pendingFlightsWindowShown
     1220            len(self._flights)>0 and \
     1221            not self._pendingFlightsWindowShown
    12211222        if sensitive:
    12221223            flight = self._getSelectedFlight()
Note: See TracChangeset for help on using the changeset viewer.