summaryrefslogtreecommitdiff
path: root/src/gui/windows/serverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-19 01:18:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-20 00:49:07 +0300
commit26f9aad24bc50d4e9fd161d185df049c9e7a62cf (patch)
treed8fd87aef6395b5a4704e9570fcbcddcc8ccca83 /src/gui/windows/serverdialog.cpp
parent50b5afdb7e68cdec8f77020b578dc3f6874933bb (diff)
downloadmanaverse-26f9aad24bc50d4e9fd161d185df049c9e7a62cf.tar.gz
manaverse-26f9aad24bc50d4e9fd161d185df049c9e7a62cf.tar.bz2
manaverse-26f9aad24bc50d4e9fd161d185df049c9e7a62cf.tar.xz
manaverse-26f9aad24bc50d4e9fd161d185df049c9e7a62cf.zip
improve includes.
Diffstat (limited to 'src/gui/windows/serverdialog.cpp')
-rw-r--r--src/gui/windows/serverdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp
index 6823c2649..a06257b10 100644
--- a/src/gui/windows/serverdialog.cpp
+++ b/src/gui/windows/serverdialog.cpp
@@ -32,7 +32,9 @@
#include "input/keydata.h"
#include "gui/font.h"
+#include "gui/gui.h"
+#include "gui/widgets/checkbox.h"
#include "gui/windows/editserverdialog.h"
#include "gui/windows/logindialog.h"
@@ -132,7 +134,7 @@ void ServersListModel::setVersionString(const int index,
if (index < 0 || index >= static_cast<int>(mVersionStrings.size()))
return;
- if (version.empty())
+ if (version.empty() || !gui)
{
mVersionStrings[index] = VersionString(0, "");
}