diff options
| author | acid-burn <acid-burn@opendreambox.org> | 2009-12-17 12:55:19 +0100 |
|---|---|---|
| committer | acid-burn <acid-burn@opendreambox.org> | 2009-12-17 12:55:19 +0100 |
| commit | f389b2688c769776b706f2fec59c3bcc1425cbc0 (patch) | |
| tree | 416bd13361167e644fdb014c579fcd966fa168b9 /lib/python/Screens/NetworkSetup.py | |
| parent | 0f6258f9b8d09188090e591bfdf7721f03d0d8e3 (diff) | |
| download | enigma2-f389b2688c769776b706f2fec59c3bcc1425cbc0.tar.gz enigma2-f389b2688c769776b706f2fec59c3bcc1425cbc0.zip | |
Screens/NetworkSetup.py: - dont count current interface as second interface if only one interface is currently configured
Diffstat (limited to 'lib/python/Screens/NetworkSetup.py')
| -rwxr-xr-x | lib/python/Screens/NetworkSetup.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py index c24fddeb..9461242d 100755 --- a/lib/python/Screens/NetworkSetup.py +++ b/lib/python/Screens/NetworkSetup.py @@ -551,7 +551,10 @@ class AdapterSetup(Screen, ConfigListScreen, HelpableScreen): if (ret == True): num_configured_if = len(iNetwork.getConfiguredAdapters()) if num_configured_if >= 1: - self.session.openWithCallback(self.secondIfaceFoundCB, MessageBox, _("A second configured interface has been found.\n\nDo you want to disable the second network interface?"), default = True) + if num_configured_if == 1 and self.iface in iNetwork.getConfiguredAdapters(): + self.applyConfig(True) + else: + self.session.openWithCallback(self.secondIfaceFoundCB, MessageBox, _("A second configured interface has been found.\n\nDo you want to disable the second network interface?"), default = True) else: self.applyConfig(True) else: |
