diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-05 18:29:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-05 18:29:07 +0300 |
commit | 71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (patch) | |
tree | 3942aec29f33b5ea2aa2e353451e10648f1bbb82 /src/gui/windows/socialwindow.cpp | |
parent | 45460ca58b3cbf6d92fe3cac1311bbfc9d00e841 (diff) | |
download | plus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.gz plus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.bz2 plus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.xz plus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.zip |
Add strong typed bool type for modal bool flag.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r-- | src/gui/windows/socialwindow.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index ad1745287..f1d5550dd 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -53,7 +53,7 @@ SocialWindow *socialWindow = nullptr; SocialWindow::SocialWindow() : // TRANSLATORS: social window name - Window(_("Social"), false, nullptr, "social.xml"), + Window(_("Social"), Modal_false, nullptr, "social.xml"), ActionListener(), PlayerRelationsListener(), mGuildInvited(0), @@ -427,7 +427,7 @@ void SocialWindow::showGuildInvite(const std::string &restrict guildName, // TRANSLATORS: guild invite message mGuildAcceptDialog = new ConfirmDialog(_("Accept Guild Invite"), - msg, SOUND_REQUEST, false, false, this); + msg, SOUND_REQUEST, false, Modal_false, this); mGuildAcceptDialog->postInit(); mGuildAcceptDialog->addActionListener(this); mGuildInvited = guildId; @@ -486,7 +486,7 @@ void SocialWindow::showPartyInvite(const std::string &restrict partyName, // show invite // TRANSLATORS: party invite message mPartyAcceptDialog = new ConfirmDialog(_("Accept Party Invite"), - msg, SOUND_REQUEST, false, false, this); + msg, SOUND_REQUEST, false, Modal_false, this); mPartyAcceptDialog->postInit(); mPartyAcceptDialog->addActionListener(this); mPartyInviter = inviter; @@ -506,7 +506,10 @@ void SocialWindow::showPartyCreate() // TRANSLATORS: ok dialog button _("OK"), DialogType::ERROR, - true, true, this, 260); + Modal_true, + true, + this, + 260); return; } |