mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-11 20:34:09 +02:00
Don't need a second if for non-Windows, using Qt macro for platform check
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
(cherry picked from commit 7750d2198d
)
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
ed7c489722
commit
0e6a9fd0c1
@ -288,9 +288,9 @@ void ExcludedFiles::addManualExclude(const QByteArray &expr)
|
||||
|
||||
void ExcludedFiles::addManualExclude(const QByteArray &expr, const QByteArray &basePath)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
#if defined(Q_OS_WIN)
|
||||
Q_ASSERT(basePath.size() >= 2 && basePath.at(1) == ':');
|
||||
#elif
|
||||
#else
|
||||
Q_ASSERT(basePath.startsWith('/'));
|
||||
#endif
|
||||
Q_ASSERT(basePath.endsWith('/'));
|
||||
|
Loading…
Reference in New Issue
Block a user