diff --git a/gpt4all-chat/qml/AddCollectionView.qml b/gpt4all-chat/qml/AddCollectionView.qml index def0579a..35947b52 100644 --- a/gpt4all-chat/qml/AddCollectionView.qml +++ b/gpt4all-chat/qml/AddCollectionView.qml @@ -96,7 +96,7 @@ Rectangle { function openFolderDialog(currentFolder, onAccepted) { folderDialog.currentFolder = currentFolder; - folderDialog.accepted.connect(function() { onAccepted(folderDialog.currentFolder); }); + folderDialog.accepted.connect(function() { onAccepted(folderDialog.selectedFolder); }); folderDialog.open(); } diff --git a/gpt4all-chat/qml/MySettingsStack.qml b/gpt4all-chat/qml/MySettingsStack.qml index 3d0776c7..bc95bca4 100644 --- a/gpt4all-chat/qml/MySettingsStack.qml +++ b/gpt4all-chat/qml/MySettingsStack.qml @@ -68,7 +68,7 @@ Item { function openFolderDialog(currentFolder, onAccepted) { folderDialog.currentFolder = currentFolder; - folderDialog.accepted.connect(function() { onAccepted(folderDialog.currentFolder); }); + folderDialog.accepted.connect(function() { onAccepted(folderDialog.selectedFolder); }); folderDialog.open(); }