summaryrefslogtreecommitdiffstats
path: root/src/kernel/qdnd_x11.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2014-04-23 15:01:04 -0500
committerTimothy Pearson <[email protected]>2014-04-23 15:01:04 -0500
commitb7d35a6235010df4cdc89961641b57ccb972f7fa (patch)
treefd9c86513c08fed1a0d7b15442d9620d54c4e17b /src/kernel/qdnd_x11.cpp
parent5747da54c67e79a326622b3367b28bb15f9774d6 (diff)
downloadqt3-b7d35a6235010df4cdc89961641b57ccb972f7fa.tar.gz
qt3-b7d35a6235010df4cdc89961641b57ccb972f7fa.zip
Fix DnD crash when source is not present
This resolves Bug 1602
Diffstat (limited to 'src/kernel/qdnd_x11.cpp')
-rw-r--r--src/kernel/qdnd_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/qdnd_x11.cpp b/src/kernel/qdnd_x11.cpp
index be72799..de549ff 100644
--- a/src/kernel/qdnd_x11.cpp
+++ b/src/kernel/qdnd_x11.cpp
@@ -1214,7 +1214,7 @@ Window findRealWindow( const QPoint & pos, Window w, int md )
void QDragManager::move( const QPoint & globalPos )
{
- if (!object) {
+ if (!object || !object->source()) {
// perhaps the target crashed?
return;
}