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

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



On 08/08/2011 07:58 AM, Martin Gracik wrote:
---
  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:

Ack.

--
David Cantrell <dcantrell redhat com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT


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