FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 08-08-2011, 11:58 AM
Martin Gracik
 
Default 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

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

Thread Tools




All times are GMT. The time now is 06:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org