[f23-branch 1/1] Don't clear the _currentIsoFile if another iso was selected

bcl installerbot-noreply at redhat.com
Sat Nov 7 01:16:02 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

It was clearing the selection even if another iso was selected.  This
resulted in the summary hub displaying 'Error setting up ISO file', but
still allowing installation to continue. It should only do that if
something other than an iso is selected.
---
 pyanaconda/ui/gui/spokes/source.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 2888e50..d2469f1 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -521,9 +521,11 @@ def _method_changed(self):
         # If the user moved from an HDISO method to some other, we need to
         # clear the protected bit on that device.
         if old_source.method == "harddrive" and old_source.partition:
-            self._currentIsoFile = None
-            self._isoChooserButton.set_label(self._origIsoChooserButton)
-            self._isoChooserButton.set_use_underline(True)
+            if not self._isoButton.get_active():
+                # Only clear this if iso isn't selected
+                self._currentIsoFile = None
+                self._isoChooserButton.set_label(self._origIsoChooserButton)
+                self._isoChooserButton.set_use_underline(True)
 
             if old_source.partition in self.storage.config.protectedDevSpecs:
                 self.storage.config.protectedDevSpecs.remove(old_source.partition)


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/bc44b56920625b9b03d8f4707f6ff8c0aa05bb3d


More information about the anaconda-patches mailing list