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, 5 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8cd6eeb6..1bec709f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -100,7 +100,7 @@ Logger *logger; /**< Log object */
namespace {
struct ErrorListener : public gcn::ActionListener
{
- void action(const std::string& eventId) { state = LOGIN_STATE; }
+ void action(const std::string &eventId, gcn::Widget *widget) { state = LOGIN_STATE; }
} errorListener;
}
@@ -606,7 +606,8 @@ int main(int argc, char *argv[])
oldstate = state;
- if (currentDialog && state != ACCOUNT_STATE && state != CHAR_CONNECT_STATE) {
+ if (currentDialog && state != ACCOUNT_STATE &&
+ state != CHAR_CONNECT_STATE) {
delete currentDialog;
currentDialog = NULL;
}
@@ -631,7 +632,8 @@ int main(int argc, char *argv[])
currentDialog = new CharSelectDialog(network, &charInfo,
1 - loginData.sex);
if (options.chooseDefault) {
- ((CharSelectDialog*)currentDialog)->action("ok");
+ ((CharSelectDialog*)currentDialog)->action("ok",
+ NULL);
}
break;