Fix potential crash in QStyleAnimation::updateCurrentTime()
authorJ-P Nurmi <jpnurmi@digia.com>
Tue, 16 Oct 2012 15:39:52 +0000 (17:39 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 17 Oct 2012 18:47:16 +0000 (20:47 +0200)
commit9d86458d8c0f823beff25eb676469bdc686cd285
treeff18e7890a86b0e2e2624a6ab14a2b0a57a3726c
parenta98b9435579f5abef82036e81af4488d8a464b66
Fix potential crash in QStyleAnimation::updateCurrentTime()

A parentless/targetless QStyleAnimation calls updateCurrentTime() from
QAbstractAnimation constructor. Avoid the potential crash even if it's
not a valid use case for QStyleAnimation.

Change-Id: I9cd263d105c8ea4b5cbabac9a7680991745ccd95
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/widgets/styles/qstyleanimation.cpp