diff options
author | Jonathan Liu <net147@gmail.com> | 2012-09-04 15:30:21 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-04 08:20:48 +0200 |
commit | e5ebcbc6343a5d5d815cbbd1812f1f5791b7bc88 (patch) | |
tree | 00ef392eccf5538a2bad8c165be4f75292570369 | |
parent | 8486a510d5fb6c9ecd03dba0a49fd4f6d55c3bca (diff) |
QWizard/Win: Fix vista helper cache state invalidation
If the cached state is not dirty and the instanceCount is zero, when the
instanceCount is incremented the cached state will not be correct. To
fix this, reset the cached state to dirty if the instanceCount is
incremented from zero.
Change-Id: Ic49eef7f83b1289a939f998817b1b2b5f5a2a45f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
-rw-r--r-- | src/widgets/dialogs/qwizard_win.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qwizard_win.cpp b/src/widgets/dialogs/qwizard_win.cpp index 7f90efa190..d91ea47aad 100644 --- a/src/widgets/dialogs/qwizard_win.cpp +++ b/src/widgets/dialogs/qwizard_win.cpp @@ -248,8 +248,9 @@ QVistaHelper::QVistaHelper(QWizard *wizard) , wizard(wizard) , backButton_(0) { - ++instanceCount; is_vista = resolveSymbols(); + if (instanceCount++ == 0) + cachedVistaState = Dirty; if (is_vista) backButton_ = new QVistaBackButton(wizard); |