mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03: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>
This commit is contained in:
parent
9c199cc753
commit
f993e7c555
2 changed files with 5 additions and 1 deletions
|
@ -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 a new issue