summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs/qmessagebox.h
diff options
context:
space:
mode:
authorDongmei Wang <dongmei.wang@qt.io>2017-07-22 10:57:59 -0700
committerDongmei Wang <dongmei.wang@qt.io>2017-07-29 00:29:57 +0000
commit5157c3e8bd78d31efea885d8e2d36e24f41a4a2f (patch)
treeffc927838f37ab8e71d73d06f68e0b213f498772 /src/widgets/dialogs/qmessagebox.h
parent23187ade6075e88e9212acef7c829a319f0a39dc (diff)
In QFileDialog delete a symlink rather than actual target it points to
In QFileDialog, when a resolved symlink gets deleted, the actual target it points to gets deleted instead of the symlink itself. The patch is to delete the symlink rather than actual target by doing the following: 1. In QFileDialog, if a directory being deleted is a resolved symlink, do not remove the directory. Instead, call QFileSystemModel to remove the model index. 2. In QFileSystemModel::remove(), use the full file path instead of the resolved file path for deletion. For a symlink, delete the symlink itself. The patch is for Windows and Linux. Task-number: QTBUG-29770 Change-Id: I4db545f0b5963acde3f89a8ee858338c23104804 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/widgets/dialogs/qmessagebox.h')
0 files changed, 0 insertions, 0 deletions