From 71fd4e8d3255e15c16a4f4b51c87222c661a5b33 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 May 2015 18:29:07 +0300 Subject: Add strong typed bool type for modal bool flag. --- src/gui/windows/socialwindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/gui/windows/socialwindow.cpp') 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; } -- cgit v1.2.3-60-g2f50