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

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

 



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@xxxxxxxxxx>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux