summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-05 18:29:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-05 18:29:07 +0300
commit71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (patch)
tree3942aec29f33b5ea2aa2e353451e10648f1bbb82 /src/gui/windows/shopwindow.cpp
parent45460ca58b3cbf6d92fe3cac1311bbfc9d00e841 (diff)
downloadmanaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.gz
manaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.bz2
manaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.xz
manaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.zip
Add strong typed bool type for modal bool flag.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 4afe10845..529b8131e 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -98,7 +98,7 @@ ShopWindow::DialogList ShopWindow::instances;
ShopWindow::ShopWindow() :
// TRANSLATORS: shop window name
- Window(_("Personal Shop"), false, nullptr, "shop.xml"),
+ Window(_("Personal Shop"), Modal_false, nullptr, "shop.xml"),
#ifdef EATHENA_SUPPORT
VendingModeListener(),
VendingSlotsListener(),
@@ -952,9 +952,12 @@ void ShopWindow::processRequest(const std::string &nick, std::string data,
{
ConfirmDialog *const confirmDlg = new ConfirmDialog
// TRANSLATORS: shop window dialog
- (_("Request for Trade"), strprintf(_("%s wants to %s %s do you "
- "accept?"), nick.c_str(), msg.c_str(),
- mTradeItem->getInfo().getName().c_str()), SOUND_REQUEST, true);
+ (_("Request for Trade"),
+ strprintf(_("%s wants to %s %s do you accept?"),
+ nick.c_str(), msg.c_str(),
+ mTradeItem->getInfo().getName().c_str()),
+ SOUND_REQUEST,
+ true);
confirmDlg->postInit();
confirmDlg->addActionListener(this);
}