fixes on QMessagesBox's to show a default window icon

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2196 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-02-04 23:12:35 +00:00
parent 451af2b47d
commit d490f6b0fe
2 changed files with 9 additions and 14 deletions

View File

@ -569,13 +569,11 @@ void MessengerWindow::chatfriend()
if (!oneLocationConnected) {
/* info dialog */
QMessageBox::StandardButton sb = QMessageBox::question ( NULL,
"Friend Not Online",
"Your Friend is offline \nDo you want to send them a Message instead",
(QMessageBox::Yes | QMessageBox::No));
if (sb == QMessageBox::Yes) {
sendMessage();
}
if ((QMessageBox::question(this, tr("Friend Not Online"),tr("Your Friend is offline \nDo you want to send them a Message instead"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
{
sendMessage();
}
}
return;
}

View File

@ -623,13 +623,10 @@ void PeersDialog::chatfriend()
if (!oneLocationConnected) {
/* info dialog */
QMessageBox::StandardButton sb = QMessageBox::question ( NULL,
"Friend Not Online",
"Your Friend is offline \nDo you want to send them a Message instead",
(QMessageBox::Yes | QMessageBox::No));
if (sb == QMessageBox::Yes) {
msgfriend();
}
if ((QMessageBox::question(this, tr("Friend Not Online"),tr("Your Friend is offline \nDo you want to send them a Message instead"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
{
msgfriend();
}
}
return;
}