summaryrefslogtreecommitdiffstats
path: root/pyanaconda/ui
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-10-02 12:04:39 -0500
committerDavid Lehman <dlehman@redhat.com>2012-10-04 20:33:51 -0500
commit7c902dc77efd5372ab3f3b37ae2d519d9db5b63a (patch)
treee344a32de508c0d0d093b9e98ad1953c9a29a57f /pyanaconda/ui
parent186743440e5c5c5329d8344be3d269447f0f8e6b (diff)
downloadanaconda-7c902dc77efd5372ab3f3b37ae2d519d9db5b63a.tar.gz
anaconda-7c902dc77efd5372ab3f3b37ae2d519d9db5b63a.tar.xz
anaconda-7c902dc77efd5372ab3f3b37ae2d519d9db5b63a.zip
Fix error handling in the add mountpoint dialog. (#860992)
Diffstat (limited to 'pyanaconda/ui')
-rw-r--r--pyanaconda/ui/gui/spokes/custom.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index e21012a24..cc4ec9168 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