mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 15:39:36 -05:00
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:
parent
451af2b47d
commit
d490f6b0fe
@ -569,13 +569,11 @@ void MessengerWindow::chatfriend()
|
|||||||
|
|
||||||
if (!oneLocationConnected) {
|
if (!oneLocationConnected) {
|
||||||
/* info dialog */
|
/* info dialog */
|
||||||
QMessageBox::StandardButton sb = QMessageBox::question ( NULL,
|
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)
|
||||||
"Friend Not Online",
|
{
|
||||||
"Your Friend is offline \nDo you want to send them a Message instead",
|
sendMessage();
|
||||||
(QMessageBox::Yes | QMessageBox::No));
|
}
|
||||||
if (sb == QMessageBox::Yes) {
|
|
||||||
sendMessage();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -623,13 +623,10 @@ void PeersDialog::chatfriend()
|
|||||||
|
|
||||||
if (!oneLocationConnected) {
|
if (!oneLocationConnected) {
|
||||||
/* info dialog */
|
/* info dialog */
|
||||||
QMessageBox::StandardButton sb = QMessageBox::question ( NULL,
|
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)
|
||||||
"Friend Not Online",
|
{
|
||||||
"Your Friend is offline \nDo you want to send them a Message instead",
|
msgfriend();
|
||||||
(QMessageBox::Yes | QMessageBox::No));
|
}
|
||||||
if (sb == QMessageBox::Yes) {
|
|
||||||
msgfriend();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user