[rhel7-branch 6/6] Revert "Select http source if there is no mirror enabled."
bcl
installerbot-noreply at redhat.com
Wed Jun 3 18:07:46 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
This reverts commit 08eed559b26bd8f35ba606f4fcba2055a5ef1898.
This is handled differently now.
Related: rhbz#1196721
---
pyanaconda/ui/gui/spokes/source.py | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index a45d1c3..67e968c 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -766,13 +766,10 @@ def refresh(self):
combo = self.builder.get_object("isoPartitionCombo")
combo.set_active(active)
- # We default to the mirror list if available. http otherwise
- if self.payload.mirrorEnabled:
- self._protocolComboBox.set_active(PROTOCOL_MIRROR)
- self._urlEntry.set_sensitive(False)
- else:
- self._protocolComboBox.set_active(PROTOCOL_HTTP)
- self._urlEntry.set_sensitive(True)
+ # We default to the mirror list, and then if the method tells us
+ # something different later, we can change it.
+ self._protocolComboBox.set_active_id(PROTOCOL_MIRROR)
+ self._urlEntry.set_sensitive(False)
self._updateURLEntryCheck()
# Set up the default state of UI elements.
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/64d7fa4c9e25ee2751eb5909dbd38ef1efc3cd7f
More information about the anaconda-patches
mailing list