From 972bbd781838c9150f87aad7c96c6bbd74a68e06 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Feb 2013 00:38:26 +0300 Subject: Fix change password issue with empty players list. --- src/gui/logindialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/logindialog.cpp') diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index b0015bf46..5767390c7 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -38,6 +38,7 @@ #include "gui/widgets/layout.h" #include "gui/widgets/passwordfield.h" +#include "net/charhandler.h" #include "net/logindata.h" #include "net/loginhandler.h" #include "net/net.h" @@ -154,6 +155,8 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName, { setCloseButton(true); + Net::getCharHandler()->clear(); + Label *const serverLabel1 = new Label(this, _("Server:")); Label *const serverLabel2 = new Label(this, serverName); serverLabel2->adjustSize(); -- cgit v1.2.3-70-g09d2