Skip to content

Commit

Permalink
Merge pull request #5241 from nextcloud/bugfix/edit-locally-ci-errors
Browse files Browse the repository at this point in the history
Fix CI errors for Edit Locally.
  • Loading branch information
allexzander authored Dec 6, 2022
2 parents f6ac52b + 8388172 commit adbd41e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/gui/folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
7 changes: 3 additions & 4 deletions src/libsync/syncengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,11 @@ class OWNCLOUDSYNC_EXPORT SyncEngine : public QObject
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 */
Expand All @@ -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:
Expand Down

0 comments on commit adbd41e

Please sign in to comment.