mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
Added warn messagebox before send invite
This commit is contained in:
parent
873fbf98ad
commit
bc8aac1ca6
@ -2463,10 +2463,14 @@ void IdDialog::sendInvite()
|
|||||||
|
|
||||||
RsGxsId id(ui->lineEdit_KeyId->text().toStdString());
|
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()
|
void IdDialog::negativePerson()
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
* Boston, MA 02110-1301, USA.
|
* Boston, MA 02110-1301, USA.
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
|
|
||||||
|
#include <QMessageBox>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
@ -365,7 +366,9 @@ void MsgItem::sendInvite()
|
|||||||
if (!rsMail->getMessage(mMsgId, mi))
|
if (!rsMail->getMessage(mMsgId, mi))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
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);
|
{
|
||||||
|
MessageComposer::sendInvite(mi.rsgxsid_srcId);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user