[PATCH 3/9] Fix error handling in the add mountpoint dialog. (#860992)
David Lehman
dlehman at redhat.com
Thu Oct 4 14:47:13 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index e21012a..cc4ec91 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -190,6 +190,7 @@ class AddDialog(GUIObject):
self.mountpoint = self.builder.get_object("addMountPointEntry").get_text()
self._error = validate_mountpoint(self.mountpoint, self.mountpoints)
self._warningLabel.set_text(mountpoint_validation_msgs[self._error])
+ self.window.show_all()
if self._error:
return
@@ -217,6 +218,7 @@ class AddDialog(GUIObject):
def run(self):
while True:
+ self._error = None
rc = self.window.run()
if not self._error:
return rc
--
1.7.7.6
More information about the anaconda-patches
mailing list