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:
thunder2 2010-07-07 23:54:47 +00:00
parent 1734ce4fdc
commit 7dd79e650f
2 changed files with 9 additions and 4 deletions

View File

@ -1156,16 +1156,21 @@ bool EmailPage::isComplete() const {
}
int EmailPage::nextId() const {
return -1;
}
bool EmailPage::validatePage()
{
QString mailaddresses = addressEdit->text();
if (mailaddresses.isEmpty() == false)
if (mailaddresses.isEmpty() == false)
{
std::string body = inviteTextEdit->toPlainText().toStdString();
body += "\n\n" + rsPeers->GetRetroshareInvite();
sendMail (mailaddresses.toStdString(), subjectEdit->text().toStdString(), body);
return true;
}
return ConnectFriendWizard::Page_Email;
return false;
}

View File

@ -289,7 +289,7 @@ public:
int nextId() const;
bool isComplete() const ;
bool validatePage();
private:
QLabel* addressLabel;