summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/tab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-07 20:19:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-07 20:19:33 +0300
commitea5da3bc3337b3125b780f7c24adbc1a73b5765b (patch)
tree958524afab76a2c69255e040874388983d988868 /src/gui/widgets/tabs/tab.cpp
parent1f4869cda453bc4e6df287a71dc061172db1e2ee (diff)
downloadmv-ea5da3bc3337b3125b780f7c24adbc1a73b5765b.tar.gz
mv-ea5da3bc3337b3125b780f7c24adbc1a73b5765b.tar.bz2
mv-ea5da3bc3337b3125b780f7c24adbc1a73b5765b.tar.xz
mv-ea5da3bc3337b3125b780f7c24adbc1a73b5765b.zip
Fix tabs color update.
Diffstat (limited to 'src/gui/widgets/tabs/tab.cpp')
-rw-r--r--src/gui/widgets/tabs/tab.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/tab.cpp b/src/gui/widgets/tabs/tab.cpp
index 5a4b4f5dc..26f58e83b 100644
--- a/src/gui/widgets/tabs/tab.cpp
+++ b/src/gui/widgets/tabs/tab.cpp
@@ -234,7 +234,9 @@ void Tab::draw(Graphics *graphics)
mode = TAB_HIGHLIGHTED;
}
- if (labelMode != mLabelMode)
+ // mRedraw need here because no other way to say label to change color
+ // +++ text from label must be moved to tab itself
+ if (labelMode != mLabelMode && mRedraw)
{
mLabelMode = labelMode;
switch (labelMode)
@@ -409,6 +411,7 @@ void Tab::setLabelFont(Font *const font)
mLabel->setFont(font);
mLabel->adjustSize();
adjustSize();
+ mRedraw = true;
}