mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-06-09 07:34:07 +02:00
Fixed typo preventing successful path rename on Win and modified ASSERT for Window path styles
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
(cherry picked from commit f993e7c555
)
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
d4b9b5129a
commit
ed7c489722
src/csync
@ -288,7 +288,11 @@ void ExcludedFiles::addManualExclude(const QByteArray &expr)
|
|||||||
|
|
||||||
void ExcludedFiles::addManualExclude(const QByteArray &expr, const QByteArray &basePath)
|
void ExcludedFiles::addManualExclude(const QByteArray &expr, const QByteArray &basePath)
|
||||||
{
|
{
|
||||||
|
#if defined(_WIN32)
|
||||||
|
Q_ASSERT(basePath.size() >= 2 && basePath.at(1) == ':');
|
||||||
|
#elif
|
||||||
Q_ASSERT(basePath.startsWith('/'));
|
Q_ASSERT(basePath.startsWith('/'));
|
||||||
|
#endif
|
||||||
Q_ASSERT(basePath.endsWith('/'));
|
Q_ASSERT(basePath.endsWith('/'));
|
||||||
|
|
||||||
auto key = basePath;
|
auto key = basePath;
|
||||||
|
Loading…
Reference in New Issue
Block a user