Changeset 777:16847856b207


Ignore:
Timestamp:
05/22/16 06:22:03 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed the PIREP auto-saving (re #285)

File:
1 edited

Legend:

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

    r772 r777  
    44184418                              clickedArg = page)
    44194419
    4420     def autoSavePIREP(self):
     4420    def autoSavePIREP(self, page):
    44214421        """Perform the automatic saving of the PIREP."""
    44224422        self._lastSavePath = os.path.join(self._wizard.gui.config.pirepDirectory,
    44234423                                          self._getDefaultPIREPName())
    44244424        self._lastSavePath = text2unicode(self._lastSavePath)
    4425         self._savePIREP(automatic = True)
     4425        self._savePIREP(page, automatic = True)
    44264426
    44274427    def _getDefaultPIREPName(self):
     
    44984498        dialog.run()
    44994499        dialog.hide()
    4500 
    4501         return pirepSaved
    45024500
    45034501    def _getSaveDialog(self):
     
    48284826        if gui.config.pirepAutoSave and sensitive and not wasSensitive:
    48294827            if gui.isWizardActive():
    4830                 self._saveHelper.autoSavePIREP()
     4828                self._saveHelper.autoSavePIREP(self)
    48314829            else:
    48324830                self._deferredAutoSave = True
     
    48434841        super(FinishPage, self).grabDefault()
    48444842        if self._deferredAutoSave:
    4845             self._saveHelper.autoSavePIREP()
     4843            self._saveHelper.autoSavePIREP(self)
    48464844            self._deferredAutoSave = False
    48474845
Note: See TracChangeset for help on using the changeset viewer.