From 7100d5f9b599e2ffb8779cf47fa0fc12c54f744c Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Thu, 26 Jul 2018 12:59:43 +0300 Subject: [PATCH] Fixed a bug where no notification was sent that peer left from the chat --- src/mainwindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 71a0bf1..42cfe4c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -135,5 +135,14 @@ void MainWindow::peerReceiverLeftFromChatMethod(QString peerID, QString chatID) { pChatWindows.at(i)->peerReceiverLeftFromChat(); } + else + { + QString msg; + msg += tr("Peer "); + msg += peerID; + msg += tr(" left from chat "); + msg += chatID; + QMessageBox::warning(this, tr("Peer receiver left from chat!"), msg, QMessageBox::Ok); + } } }