Ref T168, relay kicked message thru context to UI

* new signal in context, connected with VATLIB
* display in UI
This commit is contained in:
Klaus Basan
2017-09-30 00:48:31 +02:00
committed by Mathew Sutcliffe
parent 2aa5ed431f
commit 27ebf3e43d
7 changed files with 28 additions and 9 deletions

View File

@@ -242,6 +242,14 @@ void SwiftGuiStd::onConnectionTerminated()
this->updateGuiStatusInformation();
}
void SwiftGuiStd::onKickedFromNetwork(const QString &kickMessage)
{
this->updateGuiStatusInformation();
this->displayInOverlayWindow(CStatusMessage(
this, CStatusMessage::SeverityError,
kickMessage.isEmpty() ? "You have been kicked from the network" : kickMessage));
}
void SwiftGuiStd::onConnectionStatusChanged(BlackCore::INetwork::ConnectionStatus from, BlackCore::INetwork::ConnectionStatus to)
{
Q_UNUSED(from);