From cd100c833992279e204962503193bc487f4b9503 Mon Sep 17 00:00:00 2001 From: AT Date: Wed, 3 Jul 2024 12:00:01 -0400 Subject: [PATCH] Fix folder dialog on linux so that we can select the folder properly. (#2541) Signed-off-by: Adam Treat --- gpt4all-chat/qml/AddCollectionView.qml | 2 +- gpt4all-chat/qml/MySettingsStack.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }