[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[rhel6-branch] Focus the Add/Edit repo dialog after error (#679810)



---
 iw/task_gui.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/iw/task_gui.py b/iw/task_gui.py
index 0f5009f..b1e2808 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -347,6 +347,7 @@ class RepoEditor:
             if len(reponame) == 0:
                 self.intf.messageWindow(_("Invalid Repository Name"),
                                         _("You must provide a repository name."))
+                self.dialog.present()
                 continue
 
             # Always create a new repo object here instead of attempting to
@@ -370,9 +371,11 @@ class RepoEditor:
             type = self.typeComboBox.get_active()
             if (not applyFuncs[type](newRepoObj) or
                 not self._addAndEnableRepo(newRepoObj)):
+                self.dialog.present()
                 continue
             if not setupRepo(self.anaconda, newRepoObj):
                 self._disableAndRemoveRepo(newRepoObj)
+                self.dialog.present()
                 continue
 
             if removeOld:
-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]