summaryrefslogtreecommitdiff
path: root/src/dialogs/DefaultFileDialog.qml
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-11-24 19:36:41 +0100
committerLiang Qi <liang.qi@qt.io>2016-11-24 19:36:41 +0100
commit8dbb5d994e31bf304c12656171e1d7728650ee03 (patch)
treea4f70ded858acd924cc3e6b3aaa5ad85bc80e8e6 /src/dialogs/DefaultFileDialog.qml
parent1e6db9fc4f9cfd52ea96b1b8576ba19a1442638e (diff)
parent32831880512272968e26ed6a85a5cd98ecbda3b6 (diff)
downloadqtquickcontrols-8dbb5d994e31bf304c12656171e1d7728650ee03.tar.gz
Merge remote-tracking branch 'origin/5.6' into 5.75.7
Change-Id: I4a76c586b2e5e49616627c306dd345bdeee64b62
Diffstat (limited to 'src/dialogs/DefaultFileDialog.qml')
-rw-r--r--src/dialogs/DefaultFileDialog.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dialogs/DefaultFileDialog.qml b/src/dialogs/DefaultFileDialog.qml
index cc663ccb..8911976c 100644
--- a/src/dialogs/DefaultFileDialog.qml
+++ b/src/dialogs/DefaultFileDialog.qml
@@ -472,8 +472,8 @@ AbstractFileDialog {
id: okButton
text: root.selectFolder ? qsTr("Choose") : (selectExisting ? qsTr("Open") : qsTr("Save"))
onClicked: {
- if (view.model.isFolder(view.currentIndex) && !selectFolder)
- dirDown(view.model.get(view.currentIndex, "filePath"))
+ if (view.model.isFolder(view.currentRow) && !selectFolder)
+ dirDown(view.model.get(view.currentRow, "filePath"))
else if (!(root.selectExisting))
currentPathField.doAccept()
else