diff --git a/src/gui/widget/messagebox.cpp b/src/gui/widget/messagebox.cpp index 8670fda04..9e8bddfbf 100644 --- a/src/gui/widget/messagebox.cpp +++ b/src/gui/widget/messagebox.cpp @@ -131,7 +131,7 @@ void CMessageBox::paintButtons() int xpos = (m_width - bb_width) / 2; if (mbBtnAlign == CMessageBox::mbBtnAlignCenter1) xpos = ButtonDistance; - if (mbBtnAlign == CMessageBox::mbBtnAlignCenter2) + else if (mbBtnAlign == CMessageBox::mbBtnAlignCenter2) xpos = (m_width - bb_width) / 2; else if (mbBtnAlign == CMessageBox::mbBtnAlignLeft) xpos = ButtonSpacing;