diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-04-30 08:11:43 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-04-30 08:18:22 (GMT) |
commit | 2c6fdd89086977708850043a075b2b880bd22c9e (patch) | |
tree | 227c023704c8c2ce28e7d8fc72522f5306094845 /src/gui/text | |
parent | 073b7ce298b0e079f310ec22dee44a9fc0af9ee6 (diff) | |
download | Qt-2c6fdd89086977708850043a075b2b880bd22c9e.zip Qt-2c6fdd89086977708850043a075b2b880bd22c9e.tar.gz Qt-2c6fdd89086977708850043a075b2b880bd22c9e.tar.bz2 |
QApplication::setStyle() can cause a crash
QApplication::setStyle() caused a crash if called before
constructing the QApplication instance for custom styles. The reason
was that polish tried to create a pixmap (which is not allowed before
qApp is running). This fix checks that qApp exists. Polish will anyway
be called again when qApp gets constructed.
Task-number: 243697
Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'src/gui/text')
0 files changed, 0 insertions, 0 deletions