mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Ensure a sync happens after a conflict resolution
You'd expect that after a conflict resolution the file watcher would pick up the change and trigger a sync. For some reason it doesn't seem to happen on at least some Ubuntu systems. In such cases the user would then still have a stale conflict entry in the activity list and wouldn't be able to do anything with it. Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
75a97bdaf3
commit
8c4bd2bb52
2 changed files with 6 additions and 2 deletions
|
@ -711,7 +711,9 @@ void SocketApi::command_RESOLVE_CONFLICT(const QString &localFile, SocketListene
|
|||
dialog.setBaseFilename(baseName);
|
||||
dialog.setLocalVersionFilename(conflictedPath);
|
||||
dialog.setRemoteVersionFilename(basePath);
|
||||
dialog.exec();
|
||||
if (dialog.exec() == ConflictDialog::Accepted) {
|
||||
fileData.folder->scheduleThisFolderSoon();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -448,7 +448,9 @@ void ActivityListModel::triggerDefaultAction(int activityIndex) const
|
|||
dialog.setBaseFilename(baseName);
|
||||
dialog.setLocalVersionFilename(conflictedPath);
|
||||
dialog.setRemoteVersionFilename(basePath);
|
||||
dialog.exec();
|
||||
if (dialog.exec() == ConflictDialog::Accepted) {
|
||||
folder->scheduleThisFolderSoon();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue