summaryrefslogtreecommitdiff
path: root/src/gui/login.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-13 22:39:50 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-13 22:39:50 +0000
commitb22a61704aec7d2431c1417d2b96301d3835cf7c (patch)
tree15c7dd17088978f2ee7312d86c3390e9238f161d /src/gui/login.cpp
parent308e722a1b3fc34ade98e88b050a024cbd2c9f78 (diff)
downloadmana-b22a61704aec7d2431c1417d2b96301d3835cf7c.tar.gz
mana-b22a61704aec7d2431c1417d2b96301d3835cf7c.tar.bz2
mana-b22a61704aec7d2431c1417d2b96301d3835cf7c.tar.xz
mana-b22a61704aec7d2431c1417d2b96301d3835cf7c.zip
Fixed minimap transparent background to work in both SDL and OpenGL by using
Guichan.
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r--src/gui/login.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp
index bdd10397..6a8c1590 100644
--- a/src/gui/login.cpp
+++ b/src/gui/login.cpp
@@ -120,6 +120,7 @@ LoginDialog::~LoginDialog()
delete keepCheck;
delete okButton;
delete cancelButton;
+ delete registerButton;
}
void LoginDialog::action(const std::string& eventId)
@@ -157,7 +158,7 @@ void LoginDialog::action(const std::string& eventId)
} else {
config.setValue("username", "");
}
-
+
// Check login
if (user.length() == 0) {
new OkDialog("Error", "Enter a username first");
@@ -171,7 +172,8 @@ void LoginDialog::action(const std::string& eventId)
}
-void login() {
+void login()
+{
LoginDialog *dialog = new LoginDialog();
while (state == LOGIN)