Screens/NetworkSetup.py: small fix for yesterdays network cleanup.
authorMladen Horvat <acid-burn@opendreambox.org>
Fri, 11 Dec 2009 10:07:07 +0000 (11:07 +0100)
committerMladen Horvat <acid-burn@opendreambox.org>
Fri, 11 Dec 2009 10:07:07 +0000 (11:07 +0100)
lib/python/Screens/NetworkSetup.py

index be508de6920864fc633a84215aac7be922b45bef..c24fddebff1cb8afc53f6a5765e7f5643ca55282 100755 (executable)
@@ -542,7 +542,10 @@ class AdapterSetup(Screen, ConfigListScreen, HelpableScreen):
                if self["config"].isChanged():
                        self.session.openWithCallback(self.keySaveConfirm, MessageBox, (_("Are you sure you want to activate this network configuration?\n\n") + self.oktext ) )
                else:
-                       self.close('cancel')
+                       if self.finished_cb:
+                               self.finished_cb()
+                       else:
+                               self.close('cancel')
 
        def keySaveConfirm(self, ret = False):
                if (ret == True):