summaryrefslogtreecommitdiff
path: root/src/net/ea/tradehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
commit01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch)
tree37294c079b9a05768b7380f7595784eb73485769 /src/net/ea/tradehandler.cpp
parent072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff)
downloadmv-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz
mv-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2
mv-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz
mv-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip
Add strong typed bool type Visible.
Diffstat (limited to 'src/net/ea/tradehandler.cpp')
-rw-r--r--src/net/ea/tradehandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp
index 9c6f8f387..a0c84c24e 100644
--- a/src/net/ea/tradehandler.cpp
+++ b/src/net/ea/tradehandler.cpp
@@ -86,7 +86,7 @@ void TradeHandler::processTradeResponseContinue(const uint8_t type)
tradeWindow->setCaption(strprintf(_("Trade: You and %s"),
tradePartnerName.c_str()));
tradeWindow->initTrade(tradePartnerName);
- tradeWindow->setVisible(true);
+ tradeWindow->setVisible(Visible_true);
}
break;
case 4: // Trade cancelled
@@ -100,7 +100,7 @@ void TradeHandler::processTradeResponseContinue(const uint8_t type)
if (tradeWindow)
{
- tradeWindow->setVisible(false);
+ tradeWindow->setVisible(Visible_false);
// tradeWindow->clear();
}
PlayerInfo::setTrading(Trading_false);
@@ -132,7 +132,7 @@ void TradeHandler::processTradeCancel(Net::MessageIn &msg A_UNUSED)
NotifyManager::notify(NotifyTypes::TRADE_CANCELLED);
if (tradeWindow)
{
- tradeWindow->setVisible(false);
+ tradeWindow->setVisible(Visible_false);
tradeWindow->reset();
}
PlayerInfo::setTrading(Trading_false);
@@ -143,7 +143,7 @@ void TradeHandler::processTradeComplete(Net::MessageIn &msg A_UNUSED)
NotifyManager::notify(NotifyTypes::TRADE_COMPLETE);
if (tradeWindow)
{
- tradeWindow->setVisible(false);
+ tradeWindow->setVisible(Visible_false);
tradeWindow->reset();
}
PlayerInfo::setTrading(Trading_false);