diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-15 10:08:35 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-15 10:12:06 (GMT) |
commit | a55f477b2a40b89e690fe6b61509cf665e96243b (patch) | |
tree | 576dc5cfcb959873a3863214ed8dd0815ca82778 /src/gui | |
parent | bf61046989247d495800d7759275a2ef4b0a2150 (diff) | |
download | Qt-a55f477b2a40b89e690fe6b61509cf665e96243b.zip Qt-a55f477b2a40b89e690fe6b61509cf665e96243b.tar.gz Qt-a55f477b2a40b89e690fe6b61509cf665e96243b.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 |