[rhel6-branch] Focus many partition dialogs after error (#679810)

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

 



---
 iw/lvm_dialog_gui.py       |    5 +++++
 iw/partition_dialog_gui.py |    2 ++
 iw/raid_dialog_gui.py      |    3 +++
 3 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index 29c3d81..4ca2bae 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -603,6 +603,7 @@ class VolumeGroupEditor:
                     self.intf.messageWindow(_("Mount Point Error"),
                                             msg,
                                             custom_icon="error")
+                    dialog.present()
                     continue
 
             # validate logical volume name
@@ -612,6 +613,7 @@ class VolumeGroupEditor:
                 if err:
                     self.intf.messageWindow(_("Illegal Logical Volume Name"),
                                             err, custom_icon="error")
+                    dialog.present()
                     continue
 
             # check that the name is not already in use
@@ -629,6 +631,7 @@ class VolumeGroupEditor:
                                         _("The logical volume name \"%s\" is "
                                           "already in use. Please pick "
                                           "another.") % (lvname,), custom_icon="error")
+                dialog.present()
                 continue
 
             # test mount point
@@ -987,6 +990,7 @@ class VolumeGroupEditor:
 	    if err:
 		self.intf.messageWindow(_("Invalid Volume Group Name"), err,
 					custom_icon="error")
+        self.dialog.present()
 		continue
 
 	    origvname = self.vg.name
@@ -999,6 +1003,7 @@ class VolumeGroupEditor:
 					      "already in use. Please pick "
 					      "another." % (volname,)),
 					    custom_icon="error")
+            self.dialog.present()
 		    continue
 
 	    # get physical extent
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index dba78b3..2bf053a 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -118,6 +118,7 @@ class PartitionEditor:
                     self.intf.messageWindow(_("Mount Point Error"),
                                             msg,
                                             custom_icon="error")
+                    self.dialog.present()
                     continue
 
                 used = False
@@ -135,6 +136,7 @@ class PartitionEditor:
                                               "use. Please pick another.") %
                                             (mountpoint,),
                                             custom_icon="error")
+                    self.dialog.present()
                     continue
 
             if not self.origrequest.exists:
diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index 4c76c97..2e2cf9f 100644
--- a/iw/raid_dialog_gui.py
+++ b/iw/raid_dialog_gui.py
@@ -171,6 +171,7 @@ class RaidEditor:
                     self.intf.messageWindow(_("Mount Point Error"),
                                             msg,
                                             custom_icon="error")
+                    self.dialog.present()
                     continue
 
                 used = False
@@ -188,6 +189,7 @@ class RaidEditor:
                                               "use. Please pick another.") %
                                             (mountpoint,),
                                             custom_icon="error")
+                    self.dialog.present()
                     continue
 
             if not self.origrequest.exists:
@@ -217,6 +219,7 @@ class RaidEditor:
                 except ValueError, e:
                     self.intf.messageWindow(_("Error"), str(e),
                                             custom_icon="error")
+                    self.dialog.present()
                     continue
 
                 # we must destroy luks leaf before original raid request
-- 
1.7.3.2

_______________________________________________
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