diff options
Diffstat (limited to 'src/dialogs/DefaultFileDialog.qml')
| -rw-r--r-- | src/dialogs/DefaultFileDialog.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dialogs/DefaultFileDialog.qml b/src/dialogs/DefaultFileDialog.qml index db4d74bf1..0336695a0 100644 --- a/src/dialogs/DefaultFileDialog.qml +++ b/src/dialogs/DefaultFileDialog.qml @@ -73,7 +73,7 @@ AbstractFileDialog { property alias width: root.width property alias height: root.height property alias sidebarWidth: sidebar.width - property alias sidebarSplit: shortcuts.height + property alias sidebarSplit: shortcutsScroll.height property alias sidebarVisible: root.sidebarVisible property variant favoriteFolders: [] } @@ -169,7 +169,7 @@ AbstractFileDialog { height: parent.height - favoritesButtons.height ScrollView { - id: shortcuts + id: shortcutsScroll Component.onCompleted: { if (height < 1) height = sidebarSplitter.rowHeight * 4.65 @@ -178,7 +178,7 @@ AbstractFileDialog { height: 0 // initial width only; settings and onCompleted will override it ListView { id: shortcutsView - model: root.shortcuts + model: __shortcuts.length anchors.bottomMargin: ControlsPrivate.Settings.hasTouchScreen ? Screen.pixelDensity * 3.5 : anchors.margins implicitHeight: model.count * sidebarSplitter.rowHeight delegate: Item { @@ -187,7 +187,7 @@ AbstractFileDialog { height: shortcutLabel.implicitHeight * 1.5 Text { id: shortcutLabel - text: shortcutsView.model[index]["name"] + text: __shortcuts[Object.keys(__shortcuts)[index]].name anchors { verticalCenter: parent.verticalCenter left: parent.left @@ -204,7 +204,7 @@ AbstractFileDialog { } MouseArea { anchors.fill: parent - onClicked: root.folder = shortcutsView.model[index]["url"] + onClicked: root.folder = __shortcuts[Object.keys(__shortcuts)[index]].url } } } |
