src/gui/styles/qgtkstyle.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
--- a/src/gui/styles/qgtkstyle.cpp	Fri Apr 16 15:50:13 2010 +0300
+++ b/src/gui/styles/qgtkstyle.cpp	Mon May 03 13:17:34 2010 +0300
@@ -3398,6 +3398,9 @@
     Q_D(const QGtkStyle);
 
     QRect r = QCleanlooksStyle::subElementRect(element, option, widget);
+    if (!d->isThemeAvailable())
+        return r;
+
     switch (element) {
     case SE_ProgressBarLabel:
     case SE_ProgressBarContents: