mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
Improved "kicked" message handling, make sure it goes in the log too
This commit is contained in:
committed by
Mat Sutcliffe
parent
56e516dbcf
commit
d6f8da0f1f
@@ -295,7 +295,12 @@ void SwiftGuiStd::displayStatusMessageInGui(const CStatusMessage &statusMessage)
|
||||
void SwiftGuiStd::onKickedFromNetwork(const QString &kickMessage)
|
||||
{
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user