[PATCH 2/3] If there's only a Quit button, don't make it secondary.
Chris Lumens
clumens at redhat.com
Wed Nov 14 19:41:44 UTC 2012
---
pyanaconda/ui/gui/spokes/lib/detailederror.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/lib/detailederror.py b/pyanaconda/ui/gui/spokes/lib/detailederror.py
index e0acd94..20feb88 100644
--- a/pyanaconda/ui/gui/spokes/lib/detailederror.py
+++ b/pyanaconda/ui/gui/spokes/lib/detailederror.py
@@ -58,8 +58,9 @@ class DetailedErrorDialog(GUIObject):
for button in buttons:
widget = self.window.add_button(button, i)
- # Quit buttons should always appear left-most.
- if button == _("_Quit"):
+ # Quit buttons should always appear left-most, unless it's the
+ # only button. Then it should appear on the right.
+ if button == _("_Quit") and len(buttons) > 1:
buttonbox.set_child_secondary(widget, True)
i += 1
--
1.7.11.2
More information about the anaconda-patches
mailing list