diff --git a/data/gui/login_dialog.stkgui b/data/gui/login_dialog.stkgui new file mode 100644 index 000000000..a389e88cc --- /dev/null +++ b/data/gui/login_dialog.stkgui @@ -0,0 +1,29 @@ + + +
+ + +
+ +
diff --git a/src/states_screens/dialogs/login_dialog.cpp b/src/states_screens/dialogs/login_dialog.cpp index 04c4fba78..fc2b07c0b 100644 --- a/src/states_screens/dialogs/login_dialog.cpp +++ b/src/states_screens/dialogs/login_dialog.cpp @@ -50,6 +50,12 @@ LoginDialog::LoginDialog(const float w, const float h) : // ----------------------------------------------------------------------------- +LoginDialog::~LoginDialog() +{ +} + +// ----------------------------------------------------------------------------- + GUIEngine::EventPropagation LoginDialog::processEvent(const std::string& eventSource) { if (eventSource == "cancel") @@ -89,10 +95,9 @@ void LoginDialog::onEnterPressedInternal() } } - if (size > 0 && nonEmptyChars > 0) { - Log::info("Login Dialog","Username : '%s'",username.c_str()); + Log::info("Login Dialog","Username : %ls", username.c_str()); // It's unsafe to delete from inside the event handler so we do it // in onUpdate (which checks for m_self_destroy) m_self_destroy = true;