Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SocketAPI: fix status after a failure to move #7822

Merged
merged 1 commit into from
Mar 26, 2020
Merged

SocketAPI: fix status after a failure to move #7822

merged 1 commit into from
Mar 26, 2020

Conversation

ogoffart
Copy link
Contributor

Issue #7759

@@ -229,10 +229,10 @@ void SyncFileStatusTracker::slotAboutToPropagate(SyncFileItemVector &items)
_dirtyPaths.remove(item->destination());

if (hasErrorStatus(*item)) {
_syncProblems[item->_file] = SyncFileStatus::StatusError;
_syncProblems[item->destination()] = SyncFileStatus::StatusError;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm is that only an issue here or everywhere where _file is used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_file is usually the same as destination(), unless this is a move operation, then _file is the source.
But yes, in many case we want destination, while in some other case we want the source. Perhaps having a source() function to make it explicit and avoid the use of _file should be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants