From aa7119314e1a33d908b98906d30be94eb116d02d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Mar 2018 02:22:21 +0300 Subject: Add skin parameter to all button constructors. --- src/gui/windows/okdialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/okdialog.cpp') diff --git a/src/gui/windows/okdialog.cpp b/src/gui/windows/okdialog.cpp index ab6b269d4..8a11785c5 100644 --- a/src/gui/windows/okdialog.cpp +++ b/src/gui/windows/okdialog.cpp @@ -50,7 +50,11 @@ OkDialog::OkDialog(const std::string &restrict title, mTextBox->setTextWrapped(msg, minWidth); // TRANSLATORS: ok dialog button - Button *const okButton = new Button(this, button, "ok", this); + Button *const okButton = new Button(this, + button, + "ok", + BUTTON_SKIN, + this); int width = getFont()->getWidth(title); if (width < mTextBox->getMinWidth()) -- cgit v1.2.3-60-g2f50