This commit is contained in:
Denis Davydov 2018-07-26 13:20:04 +03:00
parent b9cb29f7d7
commit 6019b36642

View File

@ -58,7 +58,7 @@ void MainWindow::peerReceiverAvailable()
{ {
receive = true; receive = true;
int ret = QMessageBox::information(this, tr("Peer Available!"), 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) if(ret == QMessageBox::Yes)
{ {
createChatSendDatagram(*handler->peerReceiver); createChatSendDatagram(*handler->peerReceiver);
@ -135,14 +135,5 @@ void MainWindow::peerReceiverLeftFromChatMethod(QString peerID, QString chatID)
{ {
pChatWindows.at(i)->peerReceiverLeftFromChat(); 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);
}
} }
} }