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,7 +1156,11 @@ 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)
@ -1165,7 +1169,8 @@ int EmailPage::nextId() const {
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;
} }

View file

@ -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;