-
Notifications
You must be signed in to change notification settings - Fork 806
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
VFS. Display local file name clash error when syncing in VFS mode. #3239
Conversation
src/libsync/propagatedownload.cpp
Outdated
@@ -434,6 +438,11 @@ void PropagateDownloadFile::startAfterIsEncryptedIsChecked() | |||
_item->_type = ItemTypeFile; | |||
} | |||
if (_item->_type == ItemTypeVirtualFile) { | |||
if (propagator()->localFileNameClash(_item->_file)) { | |||
done(SyncFileItem::NormalError, tr(localFileNameClashMessage).arg(QDir::toNativeSeparators(_item->_file))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't work for translations, you need to have the string literal inside the tr()
. Yes, that means having it twice in the source code, it's not too bad for user visible strings, they tend to diverge over time anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@er-vin Indeed. Thanks. Fixed, and, squashed everything already. Not a huge change anyways so should be easy to see the difference.
231b970
to
54a4280
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
/rebase |
Signed-off-by: allexzander <blackslayer4@gmail.com>
54a4280
to
1952221
Compare
AppImage file: Nextcloud-PR-3239-19522210acf38a44ea77f48a7443954525485e26-x86_64.AppImage |
/backport to stable-3.2 |
Signed-off-by: allexzander blackslayer4@gmail.com
This fixes #3198