mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Improved "kicked" message handling, make sure it goes in the log too
This commit is contained in:
committed by
Mat Sutcliffe
parent
86db7f18d8
commit
4e9bf35cfc
@@ -295,7 +295,12 @@ void SwiftGuiStd::displayStatusMessageInGui(const CStatusMessage &statusMessage)
|
|||||||
void SwiftGuiStd::onKickedFromNetwork(const QString &kickMessage)
|
void SwiftGuiStd::onKickedFromNetwork(const QString &kickMessage)
|
||||||
{
|
{
|
||||||
this->updateGuiStatusInformation();
|
this->updateGuiStatusInformation();
|
||||||
this->displayInOverlayWindow(CStatusMessage(this, CStatusMessage::SeverityError, kickMessage.isEmpty() ? QStringLiteral("You have been kicked from the network") : kickMessage));
|
|
||||||
|
const QString msgText = kickMessage.isEmpty() ?
|
||||||
|
QStringLiteral("You have been kicked from the network") :
|
||||||
|
QStringLiteral("You have been kicked: '%1'").arg(kickMessage);
|
||||||
|
CLogMessage(this).error(msgText);
|
||||||
|
// this->displayInOverlayWindow(CStatusMessage(this, CStatusMessage::SeverityError, msgText));
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwiftGuiStd::onConnectionStatusChanged(INetwork::ConnectionStatus from, INetwork::ConnectionStatus to)
|
void SwiftGuiStd::onConnectionStatusChanged(INetwork::ConnectionStatus from, INetwork::ConnectionStatus to)
|
||||||
|
|||||||
Reference in New Issue
Block a user