--- 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