From b96e34946aa326a9f8dfb80ce34cce9fc219405e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Apr 2011 01:23:15 +0300 Subject: Add missing checks. --- src/gui/widgets/tab.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/tab.cpp') diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp index 6750ffbbc..73ffff30e 100644 --- a/src/gui/widgets/tab.cpp +++ b/src/gui/widgets/tab.cpp @@ -108,6 +108,9 @@ void Tab::init() for (mode = 0; mode < TAB_COUNT; mode++) { tab[mode] = Theme::getImageFromTheme(data[mode].file); + if (!tab[mode]) + continue; + a = 0; for (y = 0; y < 3; y++) { -- cgit v1.2.3-70-g09d2