summaryrefslogtreecommitdiffstats
path: root/header.BSD-OLD
diff options
context:
space:
mode:
authorDongmei Wang <dongmei.wang@qt.io>2017-07-25 13:11:04 -0700
committerDongmei Wang <dongmei.wang@qt.io>2017-07-27 21:31:28 +0000
commitaca9c93fa06e266dd44a74410eb129bdbc719607 (patch)
treec9cc19c374bf522cbfa84ecfff43668213950215 /header.BSD-OLD
parent763b0a68beb3b1502f6f4c1b979f0a576fc9980b (diff)
QFileDialog: Fix a crash occurring when deleting a file
A crash has been observed on Windows in the use case below: 1) In a non-native QFileDialog, select a file and press "Del" key to delete it, and a warning message box appears for user to confirm the deletion. 2) Delete the file in the Windows Explorer. 3) Click "Yes" on the warning message box, a crash happens In QFileDialog::_q_deleteCurrent(), use QPersistentModelIndex instead of QModelIndex to ensure that the index is valid to be deleted. The change is intended to fix . The patch is to use QPersistentModelIndex instead of QModelIndex in QFileDialog::_q_deleteCurrent() to ensure that the index is valid to be deleted. Change-Id: I8959124dc071f7cf0ab47f954d611211a789978d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'header.BSD-OLD')
0 files changed, 0 insertions, 0 deletions