summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp4
-rw-r--r--src/gui/widgets/avatarlistbox.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 3792906d2..1bb3ca235 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -46,9 +46,9 @@ Image *AvatarListBox::offlineIcon = nullptr;
AvatarListBox::AvatarListBox(const Widget2 *const widget,
AvatarListModel *const model) :
ListBox(widget, model, "avatarlistbox.xml"),
+ mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0),
mShowGender(config.getBoolValue("showgender")),
- mShowLevel(config.getBoolValue("showlevel")),
- mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0)
+ mShowLevel(config.getBoolValue("showlevel"))
{
instances++;
diff --git a/src/gui/widgets/avatarlistbox.h b/src/gui/widgets/avatarlistbox.h
index 36950f3ab..12862942a 100644
--- a/src/gui/widgets/avatarlistbox.h
+++ b/src/gui/widgets/avatarlistbox.h
@@ -62,9 +62,9 @@ public:
void optionChanged(const std::string &value) override;
private:
+ int mImagePadding;
bool mShowGender;
bool mShowLevel;
- int mImagePadding;
static int instances;
static Image *onlineIcon;