mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 14:30:43 -04:00
Added warn messagebox before send invite
This commit is contained in:
parent
873fbf98ad
commit
bc8aac1ca6
2 changed files with 12 additions and 5 deletions
|
@ -2463,10 +2463,14 @@ void IdDialog::sendInvite()
|
|||
|
||||
RsGxsId id(ui->lineEdit_KeyId->text().toStdString());
|
||||
|
||||
MessageComposer::sendInvite(id);
|
||||
if ((QMessageBox::question(this, tr("Send invite?"),tr("Do you really want send a invite with your Certificate?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||
{
|
||||
MessageComposer::sendInvite(id);
|
||||
ui->inviteFrame->show();
|
||||
ui->inviteButton->setEnabled(false);
|
||||
}
|
||||
|
||||
ui->inviteFrame->show();
|
||||
ui->inviteButton->setEnabled(false);
|
||||
|
||||
}
|
||||
|
||||
void IdDialog::negativePerson()
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QDateTime>
|
||||
#include <QTimer>
|
||||
|
||||
|
@ -365,7 +366,9 @@ void MsgItem::sendInvite()
|
|||
if (!rsMail->getMessage(mMsgId, mi))
|
||||
return;
|
||||
|
||||
|
||||
MessageComposer::sendInvite(mi.rsgxsid_srcId);
|
||||
if ((QMessageBox::question(this, tr("Send invite?"),tr("Do you really want send a invite with your Certificate?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||
{
|
||||
MessageComposer::sendInvite(mi.rsgxsid_srcId);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue