From 4e9bf35cfc23830f68f825a9734fe8098fc2bbcd Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 6 Aug 2019 13:33:07 +0200 Subject: [PATCH] Improved "kicked" message handling, make sure it goes in the log too --- src/swiftguistandard/swiftguistd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/swiftguistandard/swiftguistd.cpp b/src/swiftguistandard/swiftguistd.cpp index d053c78dc..2221fc75c 100644 --- a/src/swiftguistandard/swiftguistd.cpp +++ b/src/swiftguistandard/swiftguistd.cpp @@ -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)