summaryrefslogtreecommitdiff
path: root/src/gui/widgets/guitable.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-30 16:06:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-30 16:59:12 +0300
commit60d90692e487948b77edcac63acbef34254cea5b (patch)
treec2ca72f720f835099bc65c2832d5c7df3d92abbd /src/gui/widgets/guitable.cpp
parent38fe5f43b5ac41e41debed4868e81b4b4bf839ac (diff)
downloadmanaplus-60d90692e487948b77edcac63acbef34254cea5b.tar.gz
manaplus-60d90692e487948b77edcac63acbef34254cea5b.tar.bz2
manaplus-60d90692e487948b77edcac63acbef34254cea5b.tar.xz
manaplus-60d90692e487948b77edcac63acbef34254cea5b.zip
remove duplicate variables.
Diffstat (limited to 'src/gui/widgets/guitable.cpp')
-rw-r--r--src/gui/widgets/guitable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp
index 473899b29..638f310bd 100644
--- a/src/gui/widgets/guitable.cpp
+++ b/src/gui/widgets/guitable.cpp
@@ -100,7 +100,6 @@ GuiTable::GuiTable(const Widget2 *const widget,
mModel(nullptr),
mTopWidget(nullptr),
mActionListeners(),
- mBackgroundColor(getThemeColor(Theme::BACKGROUND)),
mHighlightColor(getThemeColor(Theme::HIGHLIGHT)),
mSelectedRow(0),
mSelectedColumn(0),
@@ -108,6 +107,8 @@ GuiTable::GuiTable(const Widget2 *const widget,
mWrappingEnabled(false),
mOpaque(opacity)
{
+ mBackgroundColor = getThemeColor(Theme::BACKGROUND);
+
setModel(initial_model);
setFocusable(true);