mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 22:22:45 -04:00
Forgot to close the new invite page after sending the mail.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3269 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1734ce4fdc
commit
7dd79e650f
2 changed files with 9 additions and 4 deletions
|
@ -1156,16 +1156,21 @@ bool EmailPage::isComplete() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
int EmailPage::nextId() const {
|
int EmailPage::nextId() const {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool EmailPage::validatePage()
|
||||||
|
{
|
||||||
QString mailaddresses = addressEdit->text();
|
QString mailaddresses = addressEdit->text();
|
||||||
|
|
||||||
if (mailaddresses.isEmpty() == false)
|
if (mailaddresses.isEmpty() == false)
|
||||||
{
|
{
|
||||||
std::string body = inviteTextEdit->toPlainText().toStdString();
|
std::string body = inviteTextEdit->toPlainText().toStdString();
|
||||||
body += "\n\n" + rsPeers->GetRetroshareInvite();
|
body += "\n\n" + rsPeers->GetRetroshareInvite();
|
||||||
|
|
||||||
sendMail (mailaddresses.toStdString(), subjectEdit->text().toStdString(), body);
|
sendMail (mailaddresses.toStdString(), subjectEdit->text().toStdString(), body);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ConnectFriendWizard::Page_Email;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -289,7 +289,7 @@ public:
|
||||||
|
|
||||||
int nextId() const;
|
int nextId() const;
|
||||||
bool isComplete() const ;
|
bool isComplete() const ;
|
||||||
|
bool validatePage();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QLabel* addressLabel;
|
QLabel* addressLabel;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue