diff options
Diffstat (limited to 'src/dialogs/DefaultFileDialog.qml')
-rw-r--r-- | src/dialogs/DefaultFileDialog.qml | 4 |
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 |