diff options
author | Marco Bubke <marco.bubke@nokia.com> | 2009-09-17 12:25:22 (GMT) |
---|---|---|
committer | Marco Bubke <marco.bubke@nokia.com> | 2009-09-17 12:25:22 (GMT) |
commit | fae6c2c2d0ca9084cd5de5c14fca26eb47a6c9b8 (patch) | |
tree | 3833d0a6231b32f9f247a139b3bfa1a4c9f280d7 /src/declarative/extra | |
parent | f2d5e83afcc30de4d77b30f90df6f82e53796d59 (diff) | |
download | Qt-fae6c2c2d0ca9084cd5de5c14fca26eb47a6c9b8.zip Qt-fae6c2c2d0ca9084cd5de5c14fca26eb47a6c9b8.tar.gz Qt-fae6c2c2d0ca9084cd5de5c14fca26eb47a6c9b8.tar.bz2 |
add fix for view size change
Diffstat (limited to 'src/declarative/extra')
-rw-r--r-- | src/declarative/extra/qmlfontloader.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/declarative/extra/qmlfontloader.cpp b/src/declarative/extra/qmlfontloader.cpp index 5373d02..4497384 100644 --- a/src/declarative/extra/qmlfontloader.cpp +++ b/src/declarative/extra/qmlfontloader.cpp @@ -175,15 +175,17 @@ QmlFontLoader::Status QmlFontLoader::status() const void QmlFontLoader::replyFinished() { Q_D(QmlFontLoader); - if (!d->reply->error()) { - QByteArray ba = d->reply->readAll(); - d->addFontToDatabase(ba); - } else { - d->status = Error; - emit statusChanged(); + if (d->reply) { + if (!d->reply->error()) { + QByteArray ba = d->reply->readAll(); + d->addFontToDatabase(ba); + } else { + d->status = Error; + emit statusChanged(); + } + d->reply->deleteLater(); + d->reply = 0; } - d->reply->deleteLater(); - d->reply = 0; } void QmlFontLoaderPrivate::addFontToDatabase(const QByteArray &ba) |