summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-03 23:28:45 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-03 23:35:24 +0200
commit076bcc1f8361c705d7dbe9088b18cca7d7fe21de (patch)
tree4c80fe2a407c71c228755a7f2a1283ace4c60ae9 /src/main.cpp
parentde3fc40ec9ddffdf0546b06e53fd8daf48e76d61 (diff)
downloadmana-076bcc1f8361c705d7dbe9088b18cca7d7fe21de.tar.gz
mana-076bcc1f8361c705d7dbe9088b18cca7d7fe21de.tar.bz2
mana-076bcc1f8361c705d7dbe9088b18cca7d7fe21de.tar.xz
mana-076bcc1f8361c705d7dbe9088b18cca7d7fe21de.zip
Made passing character name on the command line work again
It was only selecting it when found, instead of also logging in with the character.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3194bf09..2a76f759 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1120,8 +1120,7 @@ int main(int argc, char *argv[])
if (((CharSelectDialog*) currentDialog)->
selectByName(options.character)) {
- ((CharSelectDialog*) currentDialog)->action(
- gcn::ActionEvent(NULL, "ok"));
+ ((CharSelectDialog*) currentDialog)->chooseSelected();
} else {
((CharSelectDialog*) currentDialog)->selectByName(
config.getValue("lastCharacter", ""));