summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-06-11 10:37:21 +0200
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2015-06-11 11:46:00 +0000
commit827e195f17599446d27124ef74a131277fb143c7 (patch)
treebf9efa4f95327bf9954f92d025c5edb576abb418 /tests/auto/corelib
parent92cda9474245c79b635c21cd140c5d0a3a6d2e5b (diff)
OSX: check if we have a native drag before accessing it
We used to check if [sender draggingSource] != nil to determine if the current drag was started by the application itself or somewhere else. While this is correct use of the API, the problem is that a drag can also be started by UIKit if e.g dragging the file icon in the titlebar. And in that case, Qt has no no native drag data. Since we didn't take this usecase into account, we tried to access the data anyway, which led to a crash. This patch will instead check if we have native drag data directly before trying to access it, which will also cover the usecase mentioned above. Task-number: QTBUG-46598 Change-Id: Ic91b86f658670b895d90a1533246ba24a00dde41 Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
Diffstat (limited to 'tests/auto/corelib')
0 files changed, 0 insertions, 0 deletions