diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2020-12-08 21:27:40 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-19 11:35:35 +0000 |
commit | 93e4f88204e604d9196c99c297b081e3f61b7a1c (patch) | |
tree | dbce2b6691458eadc4a9063667adb7f6e9548db4 /tests/auto/corelib/io/qfile/tst_qfile.cpp | |
parent | c855608119cba04cb116af6e5f68759dd888e1a6 (diff) |
ItemViews: Don't remove items on internal move
When an itemview only allows internal moving of items it can happen that
the target accepts the drag'n'drop operation since it's out of the
control of Qt (e.g. Recycle Bin or an other application). Due to the
nature of a move, the original item is deleted. Therefore check if the
internal move target is the same as the source and don't delete it
otherwse.
Fixes: QTBUG-86020
Change-Id: I69de4b8d76d1b0f57338b402aee87580226cd6cb
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 12d8bb0709bf7982061cb0c3e608e4a581892e35)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/corelib/io/qfile/tst_qfile.cpp')
0 files changed, 0 insertions, 0 deletions