diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/okdialog.cpp | 1 | ||||
-rw-r--r-- | src/gui/okdialog.h | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/okdialog.cpp b/src/gui/okdialog.cpp index 6c0856f3b..e7f0a669e 100644 --- a/src/gui/okdialog.cpp +++ b/src/gui/okdialog.cpp @@ -51,7 +51,6 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg, Button *const okButton = new Button(this, _("OK"), "ok", this); int width = getFont()->getWidth(title); - if (width < mTextBox->getMinWidth()) width = mTextBox->getMinWidth(); if (width < okButton->getWidth()) diff --git a/src/gui/okdialog.h b/src/gui/okdialog.h index 0d64e7bff..2430660d6 100644 --- a/src/gui/okdialog.h +++ b/src/gui/okdialog.h @@ -43,7 +43,8 @@ enum * * \ingroup GUI */ -class OkDialog final : public Window, public gcn::ActionListener +class OkDialog final : public Window, + public gcn::ActionListener { public: /** |