diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-30 16:50:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-30 16:50:50 +0300 |
commit | 143e04546197d75279d41e9eefe0fca4478673d4 (patch) | |
tree | 0a78eb7251943571342bba70210161af603473d8 /src/net | |
parent | dbe40332cd904f8e48504a2e8a3e7f74f4619712 (diff) | |
download | mv-143e04546197d75279d41e9eefe0fca4478673d4.tar.gz mv-143e04546197d75279d41e9eefe0fca4478673d4.tar.bz2 mv-143e04546197d75279d41e9eefe0fca4478673d4.tar.xz mv-143e04546197d75279d41e9eefe0fca4478673d4.zip |
Add ability to open support page if error happend.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/network.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/tradehandler.cpp | 3 | ||||
-rw-r--r-- | src/net/serverinfo.h | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index f83eab629..5214cf7e4 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -199,7 +199,7 @@ bool Network::realConnect() const std::string errorMessage = std::string( // TRANSLATORS: error message _("Unable to resolve host \"")).append( - mServer.hostname).append("\""); + mServer.hostname).append("\"."); setError(errorMessage); logger->log("TcpNet::ResolveHost: %s", errorMessage.c_str()); return false; diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp index 03dc1bcac..4fa92e7d8 100644 --- a/src/net/ea/tradehandler.cpp +++ b/src/net/ea/tradehandler.cpp @@ -103,7 +103,8 @@ void TradeHandler::processTradeRequest(Net::MessageIn &msg) confirmDlg = new ConfirmDialog(_("Request for Trade"), // TRANSLATORS: trade message strprintf(_("%s wants to trade with you, do" - " you accept?"), tradePartnerName.c_str()), true); + " you accept?"), tradePartnerName.c_str()), + SOUND_REQUEST, true); confirmDlg->addActionListener(&listener); } else diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index 515595f1f..c9a2d4f91 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -55,6 +55,7 @@ public: std::string description; std::string registerUrl; std::string onlineListUrl; + std::string supportUrl; VersionString version; bool save; @@ -68,6 +69,7 @@ public: description(), registerUrl(), onlineListUrl(), + supportUrl(), version(), save(false) { @@ -83,6 +85,7 @@ public: description(info.description), registerUrl(info.registerUrl), onlineListUrl(info.onlineListUrl), + supportUrl(info.supportUrl), version(), save(info.save) { @@ -105,6 +108,7 @@ public: description.clear(); registerUrl.clear(); onlineListUrl.clear(); + supportUrl.clear(); version.first = 0; version.second.clear(); save = false; |