summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-20 20:50:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-20 20:50:50 +0300
commit4b19b15936faa8e1d5f331cc11147ccfc360bde7 (patch)
treee601b548c0c55a7e434b30cfff328ca5e3662bee /src/gui/widgets
parent042c4f09e34157522692d6f99f5c51bc04e8f27a (diff)
downloadplus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.gz
plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.bz2
plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.xz
plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.zip
improve a bit code speed.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/scrollarea.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index 56fdd299b..061db3333 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -148,10 +148,8 @@ void ScrollArea::init(std::string skinName)
skinName = "scroll_background.xml";
Theme *const theme = Theme::instance();
if (theme)
- theme->loadRect(background, skinName, "scroll_background.xml");
-
- if (theme)
{
+ theme->loadRect(background, skinName, "scroll_background.xml");
theme->loadRect(vMarker, "scroll.xml", "");
theme->loadRect(vMarkerHi, "scroll_highlighted.xml", "scroll.xml");
theme->loadRect(vBackground, "scroll_vbackground.xml", "");