Sync Folder: Add file manager favorite also in folder wizard #455
authorMarkus Goetz <markus@woboq.com>
Thu, 3 Aug 2017 17:54:20 +0000 (19:54 +0200)
committerMarkus Goetz <markus@woboq.com>
Fri, 4 Aug 2017 15:38:01 +0000 (17:38 +0200)
Not only in the account wizard.

src/gui/accountsettings.cpp
src/gui/owncloudsetupwizard.cpp

index 392bd1efcebce465987f1fbdd3fc34e749ea18f1..a5a5e105dc8aeaf3b18df8f452f2ce1d4dc41897 100644 (file)
@@ -396,6 +396,7 @@ void AccountSettings::slotFolderWizardAccepted()
             }
         }
         FileSystem::setFolderMinimumPermissions(definition.localPath);
+        Utility::setupFavLink(definition.localPath);
     }
 
     /* take the value from the definition of already existing folders. All folders have
index f124fa265b2e685887a31b1332d0d54e16cabab6..dcd510f78d7b81f1b61318dad1e5eaf281dcb247 100644 (file)
@@ -383,6 +383,7 @@ void OwncloudSetupWizard::slotCreateLocalAndRemoteFolders(const QString &localFo
     bool nextStep = true;
     if (fi.exists()) {
         FileSystem::setFolderMinimumPermissions(localFolder);
+        Utility::setupFavLink(localFolder);
         // there is an existing local folder. If its non empty, it can only be synced if the
         // ownCloud is newly created.
         _ocWizard->appendToConfigurationLog(