summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-25 00:59:19 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-25 00:59:19 (GMT)
commit3505bcc275dc2e276386e51b1dc13325d4eefa07 (patch)
tree9af06bbc39634268e523360f3c8832c70c5a07d5 /src
parent9cdf2b5902b692bed2d27c28bd51a506d052bbfb (diff)
downloadpowder-3505bcc275dc2e276386e51b1dc13325d4eefa07.zip
powder-3505bcc275dc2e276386e51b1dc13325d4eefa07.tar.gz
Login window close on success
Diffstat (limited to 'src')
-rw-r--r--src/login/LoginView.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login/LoginView.cpp b/src/login/LoginView.cpp
index 9becd17..e73d014 100644
--- a/src/login/LoginView.cpp
+++ b/src/login/LoginView.cpp
@@ -58,6 +58,10 @@ LoginView::LoginView():
void LoginView::NotifyStatusChanged(LoginModel * sender)
{
infoLabel->SetText(sender->GetStatusText());
+ if(sender->GetStatus())
+ {
+ c->Exit();
+ }
}
void LoginView::OnDraw()