diff -r 3b1da2848fc7 -r d3bac044e0f0 tools/designer/src/lib/shared/widgetfactory.cpp --- 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;