summaryrefslogtreecommitdiff
path: root/src/gui/setup_relations.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
commit747dc30f256606e28fd932a9626da7c328114036 (patch)
tree1b3e7e70ba439d14d4936660d44c95c27816a11b /src/gui/setup_relations.cpp
parentcef2952156ab09371ed04beec00d0f1e8615ada9 (diff)
downloadmanaverse-747dc30f256606e28fd932a9626da7c328114036.tar.gz
manaverse-747dc30f256606e28fd932a9626da7c328114036.tar.bz2
manaverse-747dc30f256606e28fd932a9626da7c328114036.tar.xz
manaverse-747dc30f256606e28fd932a9626da7c328114036.zip
fix style in gui directory.
Diffstat (limited to 'src/gui/setup_relations.cpp')
-rw-r--r--src/gui/setup_relations.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/setup_relations.cpp b/src/gui/setup_relations.cpp
index 562e86e6f..ccc6d8ce2 100644
--- a/src/gui/setup_relations.cpp
+++ b/src/gui/setup_relations.cpp
@@ -98,6 +98,7 @@ public:
Widget2(widget),
TableModel(),
mPlayers(nullptr),
+ mWidgets(),
mListModel(new PlayerRelationListModel)
{
playerRelationsUpdated();
@@ -247,7 +248,9 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) :
player_relations.getDefault() & PlayerRelation::TRADE)),
mDefaultWhisper(new CheckBox(this, _("Allow whispers"),
player_relations.getDefault() & PlayerRelation::WHISPER)),
- mDeleteButton(new Button(this, _("Delete"), ACTION_DELETE, this))
+ mDeleteButton(new Button(this, _("Delete"), ACTION_DELETE, this)),
+ mIgnoreActionChoicesModel(new IgnoreChoicesListModel),
+ mIgnoreActionChoicesBox(new DropDown(widget, mIgnoreActionChoicesModel))
{
setName(_("Relations"));
@@ -258,8 +261,6 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) :
RELATION_CHOICE_COLUMN_WIDTH);
mPlayerTitleTable->setBackgroundColor(gcn::Color(0xbf, 0xbf, 0xbf));
- mIgnoreActionChoicesModel = new IgnoreChoicesListModel;
- mIgnoreActionChoicesBox = new DropDown(widget, mIgnoreActionChoicesModel);
for (int i = 0; i < COLUMNS_NR; i++)
{