Merge pull request #5241 from nextcloud/bugfix/edit-locally-ci-errors

Fix CI errors for Edit Locally.
This commit is contained in:
allexzander 2022-12-06 16:13:32 +01:00 committed by GitHub
commit adbd41e773
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -831,6 +831,7 @@ bool Folder::reloadExcludes()
void Folder::startSync(const QStringList &pathList)
{
Q_UNUSED(pathList);
const auto singleItemDiscoveryOptions = _engine->singleItemDiscoveryOptions();
Q_ASSERT(!singleItemDiscoveryOptions.discoveryDirItem || singleItemDiscoveryOptions.discoveryDirItem->isDirectory());
if (singleItemDiscoveryOptions.discoveryDirItem && !singleItemDiscoveryOptions.discoveryDirItem->isDirectory()) {

View file

@ -125,8 +125,11 @@ public:
static void switchToVirtualFiles(const QString &localPath, SyncJournalDb &journal, Vfs &vfs);
[[nodiscard]] QSharedPointer<OwncloudPropagator> getPropagator() const { return _propagator; } // for the test
[[nodiscard]] const SyncEngine::SingleItemDiscoveryOptions &singleItemDiscoveryOptions() const;
public slots:
void setSingleItemDiscoveryOptions(const SingleItemDiscoveryOptions &singleItemDiscoveryOptions);
void startSync();
/* Abort the sync. Called from the main thread */
@ -148,10 +151,6 @@ public slots:
* sync's style.
*/
void setLocalDiscoveryOptions(OCC::LocalDiscoveryStyle style, std::set<QString> paths = {});
void setSingleItemDiscoveryOptions(const SingleItemDiscoveryOptions &singleItemDiscoveryOptions);
[[nodiscard]] const SyncEngine::SingleItemDiscoveryOptions &singleItemDiscoveryOptions() const;
void addAcceptedInvalidFileName(const QString& filePath);
signals: