diff --git a/lib/python/Screens/SoftwareUpdate.py b/lib/python/Screens/SoftwareUpdate.py index be7f71362b..a2f89ac055 100644 --- a/lib/python/Screens/SoftwareUpdate.py +++ b/lib/python/Screens/SoftwareUpdate.py @@ -18,7 +18,7 @@ from Screens.ParentalControlSetup import ProtectedScreen from Screens.Screen import Screen from Screens.TextBox import TextBox -from Screens.Standby import TryQuitMainloop +from Screens.Standby import TryQuitMainloop, QUIT_REBOOT, QUIT_UPGRADE_PROGRAM from Tools.BoundFunction import boundFunction from Tools.Directories import isPluginInstalled @@ -385,7 +385,7 @@ def startActualUpgrade(self, answer): if (config.softwareupdate.autosettingsbackup.value and config.backupmanager.backuplocation.value) or (config.softwareupdate.autoimagebackup.value and config.imagemanager.backuplocation.value): self.doAutoBackup() else: - self.session.open(TryQuitMainloop, retvalue=42) + self.session.open(TryQuitMainloop, retvalue=QUIT_UPGRADE_PROGRAM) self.close() def modificationCallback(self, res): @@ -419,7 +419,7 @@ def doAutoBackup(self, val=False): elif config.softwareupdate.autoimagebackup.value and config.imagemanager.backuplocation.value and not self.ImageBackupDone: self.doImageBackup() else: - self.session.open(TryQuitMainloop, retvalue=42) + self.session.open(TryQuitMainloop, retvalue=QUIT_UPGRADE_PROGRAM) self.close() def showJobView(self, job): @@ -446,5 +446,5 @@ def exit(self): def exitAnswer(self, result): if result is not None and result: - self.session.open(TryQuitMainloop, retvalue=2) + self.session.open(TryQuitMainloop, retvalue=QUIT_REBOOT) self.close()