diff options
Diffstat (limited to 'src/gui/widgets/tab.cpp')
-rw-r--r-- | src/gui/widgets/tab.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp index 124579fab..e002c03fe 100644 --- a/src/gui/widgets/tab.cpp +++ b/src/gui/widgets/tab.cpp @@ -100,13 +100,11 @@ void Tab::init() if (mInstances == 0) { // Load the skin - if (Theme::instance()) + Theme *const theme = Theme::instance(); + if (theme) { for (int mode = 0; mode < TAB_COUNT; mode ++) - { - Theme::instance()->loadRect(tabImg[mode], - data[mode], "tab.xml"); - } + theme->loadRect(tabImg[mode], data[mode], "tab.xml"); } updateAlpha(); } |