diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-15 10:08:35 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-15 16:14:17 (GMT) |
commit | 87a19963529a3974ae5fda3822c49cdc9a973a93 (patch) | |
tree | fe2a36a1357215a4ca9aeb6d1751ab84f13787a0 /src/gui | |
parent | 1b2ea4af58ca5cd6ba504ea9af3337677cbfe89e (diff) | |
download | Qt-87a19963529a3974ae5fda3822c49cdc9a973a93.zip Qt-87a19963529a3974ae5fda3822c49cdc9a973a93.tar.gz Qt-87a19963529a3974ae5fda3822c49cdc9a973a93.tar.bz2 |
BT: Fix a crash on certain theme changes in GNOME
We did not update initGtkWidgets on theme changes which could
lead to crashes as the contents of the widget hash depend on
certain properties in the style. A simple way to reproduce this would
be to change between the redmond gtk theme and cleanlooks.
Task-number: 251115
Reviewed-by: paul
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/styles/gtksymbols.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/gtksymbols.cpp b/src/gui/styles/gtksymbols.cpp index f7af8f8..acb8437 100644 --- a/src/gui/styles/gtksymbols.cpp +++ b/src/gui/styles/gtksymbols.cpp @@ -549,6 +549,7 @@ void QGtkStyleUpdateScheduler::updateTheme() QPalette newPalette = qApp->style()->standardPalette(); QApplicationPrivate::setSystemPalette(newPalette); QApplication::setPalette(newPalette); + QGtk::initGtkWidgets(); QGtk::applyCustomPaletteHash(); QList<QWidget*> widgets = QApplication::allWidgets(); // Notify all widgets that size metrics might have changed |