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); - } } }