Ignore:
Timestamp:
02/01/14 09:18:39 (10 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The departure and arrival times are displayed on the finish page and if one of the differences is greater than 15 minutes, the PIREP cannot be saved or sent unless a delay code or a comment is provided (re #224)

File:
1 edited

Legend:

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

    r501 r555  
    403403        return self._flightInfo.delayCodes
    404404
     405    @property
     406    def hasDelayCode(self):
     407        """Determine if there is at least one delay code selected."""
     408        return self._flightInfo.hasDelayCode
     409
    405410    def run(self):
    406411        """Run the GUI."""
     
    782787        else:
    783788            callback(self._fleet)
     789
     790    def commentsChanged(self):
     791        """Indicate that the comments have changed."""
     792        self._wizard.commentsChanged()
     793
     794    def delayCodesChanged(self):
     795        """Called when the delay codes have changed."""
     796        self._wizard.delayCodesChanged()
    784797
    785798    def updateRTO(self, inLoop = False):
     
    11331146        else:
    11341147            self._mainWindow.set_default(None)
     1148
     1149    def isWizardActive(self):
     1150        """Determine if the flight wizard is active."""
     1151        return self._notebook.get_current_page()==0
    11351152
    11361153    def _editChecklist(self, menuItem):
Note: See TracChangeset for help on using the changeset viewer.