diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-13 02:55:05 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-13 02:55:05 +0000 |
commit | 682d6a9e44e583c088ed5970d69ef6bd9db7fd23 (patch) | |
tree | 73079cdd7d9b57d104c8db400f09aabc3d833122 /src/gui/login.cpp | |
parent | 3657bf87641144b605d49767cf466f04242c29c9 (diff) | |
download | mana-client-682d6a9e44e583c088ed5970d69ef6bd9db7fd23.tar.gz mana-client-682d6a9e44e583c088ed5970d69ef6bd9db7fd23.tar.bz2 mana-client-682d6a9e44e583c088ed5970d69ef6bd9db7fd23.tar.xz mana-client-682d6a9e44e583c088ed5970d69ef6bd9db7fd23.zip |
Got rid of Allegro ok dialog completely. Now just the yes_no dialog remaining.
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r-- | src/gui/login.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index 08276562..b1e8b43e 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -116,9 +116,7 @@ void LoginDialog::action(const std::string& eventId) // Check login if (user.length() == 0) { - ok("Error", "Enter your username first"); - warning("Enter your username first"); - state = LOGIN; + new OkDialog("Error", "Enter your username first"); } else { server_login(user, passField->getText()); close_session(); @@ -157,8 +155,7 @@ void server_login(const std::string& user, const std::string& pass) { if (ret == SOCKET_ERROR) { state = LOGIN; - ok("Error", "Unable to connect to login server"); - warning("Unable to connect to login server"); + new OkDialog("Error", "Unable to connect to login server"); return; } |