diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-05 18:40:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-05 18:40:31 +0300 |
commit | e6d251345a48108495d39d82b0ec79deac63d86d (patch) | |
tree | e7a8ecf138b30b091146f51e1b13f0e0e7c0359b /src/gui/windows/okdialog.cpp | |
parent | 71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (diff) | |
download | manaverse-e6d251345a48108495d39d82b0ec79deac63d86d.tar.gz manaverse-e6d251345a48108495d39d82b0ec79deac63d86d.tar.bz2 manaverse-e6d251345a48108495d39d82b0ec79deac63d86d.tar.xz manaverse-e6d251345a48108495d39d82b0ec79deac63d86d.zip |
Add strong typed bool type in OkDialog.
Diffstat (limited to 'src/gui/windows/okdialog.cpp')
-rw-r--r-- | src/gui/windows/okdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/okdialog.cpp b/src/gui/windows/okdialog.cpp index 1f77af3f9..1a6c0c3c8 100644 --- a/src/gui/windows/okdialog.cpp +++ b/src/gui/windows/okdialog.cpp @@ -39,7 +39,7 @@ OkDialog::OkDialog(const std::string &restrict title, const std::string &restrict button, const int soundEvent, const Modal modal, - const bool showCenter, + const ShowCenter showCenter, Window *const parent, const int minWidth) : Window(title, modal, parent, "ok.xml"), @@ -73,7 +73,7 @@ OkDialog::OkDialog(const std::string &restrict title, add(mTextBox); add(okButton); - if (showCenter) + if (showCenter == ShowCenter_true) center(); else centerHorisontally(); |