summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 69b45091..af1057a7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1073,8 +1073,12 @@ int main(int argc, char *argv[])
}
else
{
- ((CharSelectDialog*) currentDialog)->selectByName(
- config.getValue("lastCharacter", ""));
+ if (((CharSelectDialog*) currentDialog)->selectByName(
+ config.getValue("lastCharacter", "")))
+ {
+ if (options.chooseDefault)
+ ((CharSelectDialog*) currentDialog)->chooseSelected();
+ }
}
break;