tools/designer/src/lib/shared/widgetfactory.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
--- a/tools/designer/src/lib/shared/widgetfactory.cpp	Fri Feb 19 23:40:16 2010 +0200
+++ b/tools/designer/src/lib/shared/widgetfactory.cpp	Fri Mar 12 15:46:37 2010 +0200
@@ -774,6 +774,8 @@
 
 void WidgetFactory::applyStyleToTopLevel(QStyle *style, QWidget *widget)
 {
+    if (!style)
+        return;
     const QPalette standardPalette = style->standardPalette();
     if (widget->style() == style && widget->palette() == standardPalette)
         return;