The method `on_repoUrl_changed` in Source spoke is now called by `Gtk.Entry` and `Gtk.ComboBoxText` too. This caused crash in a method depending on `Gtk.Entry` but sometimes gets `ComboBoxText` instead.
Added label: master.
From: Jiri Konecny jkonecny@redhat.com
The method on_repoUrl_changed in Source spoke is now called by Gtk.Entry and Gtk.ComboBoxText too. This caused crash in a method depending on Gtk.Entry but sometimes gets ComboBoxText instead. --- pyanaconda/ui/gui/spokes/source.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py index d909ec9..67c19bb 100644 --- a/pyanaconda/ui/gui/spokes/source.py +++ b/pyanaconda/ui/gui/spokes/source.py @@ -1415,7 +1415,9 @@ def on_repoNameEntry_changed(self, entry): self._repoChecks[name].name_check.update_check_status()
def on_repoUrl_changed(self, editable, data=None): - """ proxy url or protocol changed + """ Additional repository url or protocol changed. + + Note: variable editable could be Gtk.Entry or Gtk.ComboBoxText here. """ itr = self._repoSelection.get_selected()[1] if not itr: @@ -1432,7 +1434,7 @@ def on_repoUrl_changed(self, editable, data=None): self._repoChecks[repo.name].url_check.update_check_status()
# Check for and remove a URL prefix that matches the protocol dropdown - self._removeUrlPrefix(editable, self._repoProtocolComboBox, self.on_repoUrl_changed) + self._removeUrlPrefix(self._repoUrlEntry, self._repoProtocolComboBox, self.on_repoUrl_changed)
def on_repoMirrorlistCheckbox_toggled(self, *args): """ mirror state changed
I think this is more or less the same thing as https://github.com/rhinstaller/anaconda/pull/220 ?
Closed.
Yeah you are right. I missed that before. Closing this one.
anaconda-patches@lists.fedorahosted.org