[rhel7-branch 2/2] Set the no network error in refresh()
dashea
installerbot-noreply at redhat.com
Mon Jul 6 13:56:13 UTC 2015
From: David Shea <dshea at redhat.com>
This message was moved to the wrong method somewhere in cherry-picking
it back and forth.
Resolves: rhbz#1238797
---
pyanaconda/ui/gui/spokes/source.py | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 3a9fea8..849db83 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -844,6 +844,14 @@ def refresh(self):
# that condition here too.
self.on_protocol_changed(self._protocolComboBox)
+ if not nm.nm_is_connected():
+ self._networkButton.set_sensitive(False)
+ self._networkBox.set_sensitive(False)
+
+ self.clear_info()
+ self.set_warning(_("You need to configure the network to use a network installation source."))
+
+
def _setup_no_updates(self):
""" Setup the state of the No Updates checkbox.
@@ -855,13 +863,6 @@ def _setup_no_updates(self):
active = not self._mirror_active() or not self.payload.isRepoEnabled("updates")
self._noUpdatesCheckbox.set_active(active)
- if not nm.nm_is_connected():
- self._networkButton.set_sensitive(False)
- self._networkBox.set_sensitive(False)
-
- self.clear_info()
- self.set_warning(_("You need to configure the network to use a network installation source."))
-
@property
def showable(self):
return isinstance(self.payload, PackagePayload)
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/0b2d185f24badbc531428f160e977cee840ad128
More information about the anaconda-patches
mailing list