summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmimedata.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-13 12:03:39 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-13 12:04:44 (GMT)
commit32182d107fa75e5619ecc91a81f50626f429ebe1 (patch)
tree97d8ed9480b92d053e39850b214a14f696f1ed6b /src/corelib/kernel/qmimedata.cpp
parentd54224252d56a50b42c8991308840ea1acde8f30 (diff)
downloadQt-32182d107fa75e5619ecc91a81f50626f429ebe1.zip
Qt-32182d107fa75e5619ecc91a81f50626f429ebe1.tar.gz
Qt-32182d107fa75e5619ecc91a81f50626f429ebe1.tar.bz2
QTreeView: now dragging lots of items is fast
Diffstat (limited to 'src/corelib/kernel/qmimedata.cpp')
-rw-r--r--src/corelib/kernel/qmimedata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qmimedata.cpp b/src/corelib/kernel/qmimedata.cpp
index 3d2a7cb..4a1ba9f 100644
--- a/src/corelib/kernel/qmimedata.cpp
+++ b/src/corelib/kernel/qmimedata.cpp
@@ -105,7 +105,7 @@ QVariant QMimeDataPrivate::retrieveTypedData(const QString &format, QVariant::Ty
Q_Q(const QMimeData);
QVariant data = q->retrieveData(format, type);
- if (data.type() == type || data.type() == QVariant::Invalid)
+ if (data.type() == type || !data.isValid())
return data;
// provide more conversion possiblities than just what QVariant provides