summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-01-21 00:04:59 +0100
committerBertram <bertram@cegetel.net>2010-01-21 00:04:59 +0100
commitbc510d9de037b665dc96f97da1848d69e5a8b0ed (patch)
tree139c592b8fd7971ff1da8ea9750ba7f56f2c8b15 /src/gui/charselectdialog.h
parent3fb3480ef461c7fa2e1f44142f4d37d80d87e087 (diff)
downloadmana-client-bc510d9de037b665dc96f97da1848d69e5a8b0ed.tar.gz
mana-client-bc510d9de037b665dc96f97da1848d69e5a8b0ed.tar.bz2
mana-client-bc510d9de037b665dc96f97da1848d69e5a8b0ed.tar.xz
mana-client-bc510d9de037b665dc96f97da1848d69e5a8b0ed.zip
Corrected the --default option behaviour to follow --help definition.
The --help options tells: -D --default : Choose default character server and character The client now choose the defaulted last character entry when --default is set. The --character option still has precedence. Also added a return value to the CharSelectDialog->chooseSelected() function while on it, in case of someone willing to add errors handling at this stage.
Diffstat (limited to 'src/gui/charselectdialog.h')
-rw-r--r--src/gui/charselectdialog.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/charselectdialog.h b/src/gui/charselectdialog.h
index d16453a6..e2803cfc 100644
--- a/src/gui/charselectdialog.h
+++ b/src/gui/charselectdialog.h
@@ -66,7 +66,12 @@ class CharSelectDialog : public Window, public gcn::ActionListener,
bool selectByName(const std::string &name);
- void chooseSelected();
+ /**
+ * Send selection to character server
+ * @return false if the selection or the number of existing character
+ * is empty.
+ */
+ bool chooseSelected();
void update(int slot = -1);