From 69d73d1333e702a28fadeae9be9fa0b0265c13ef Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 13 Feb 2023 19:45:16 +0100 Subject: [PATCH] Respond to folder creation at specific creation path on macOS Signed-off-by: Claudio Cambra --- src/gui/accountsettings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index 77aba9dd0e..f9c6dc4dee 100644 --- a/src/gui/accountsettings.cpp +++ b/src/gui/accountsettings.cpp @@ -458,7 +458,9 @@ void AccountSettings::slotOpenMakeFolderDialog() #ifdef Q_OS_MAC // The macOS FolderWatcher cannot detect file and folder changes made by the watching process -- us. // So we need to manually invoke the slot that is called by watched folder changes. - connect(folderCreationDialog, &QDialog::finished, this, [folder, fileName] { folder->slotWatchedPathChanged(fileName, Folder::ChangeReason::Other); }); + connect(folderCreationDialog, &FolderCreationDialog::folderCreated, this, [folder, fileName](const QString &fullFolderPath) { + folder->slotWatchedPathChanged(fullFolderPath, Folder::ChangeReason::Other); + }); #endif } }