From 6019b3664224b9cfeb5d6151586fe790ed546ace Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Thu, 26 Jul 2018 13:20:04 +0300 Subject: [PATCH] Cancel of fix 7100d5f9b599e2ffb8779cf47fa0fc12c54f744c --- src/mainwindow.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 666de22..72178ff 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -58,7 +58,7 @@ void MainWindow::peerReceiverAvailable() { receive = true; int ret = QMessageBox::information(this, tr("Peer Available!"), - tr("Peer Available!\n Do you want to create chat?"), QMessageBox::Yes | QMessageBox::No); + tr("Peer Available!\nDo you want to create chat?"), QMessageBox::Yes | QMessageBox::No); if(ret == QMessageBox::Yes) { createChatSendDatagram(*handler->peerReceiver); @@ -135,14 +135,5 @@ 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); - } } }