mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Checks if exclude file is empty before creating the regular expressions.
The default file created by the application it is not empty. Signed-off-by: Camila San <hello@camila.codes>
This commit is contained in:
parent
a140720901
commit
481d8d3a0b
1 changed files with 5 additions and 1 deletions
|
@ -322,7 +322,11 @@ bool ExcludedFiles::loadExcludeFile(const QByteArray & basePath, const QString &
|
|||
csync_exclude_expand_escapes(line);
|
||||
_allExcludes[basePath].append(line);
|
||||
}
|
||||
prepare(basePath);
|
||||
|
||||
// nothing to prepare if the user decided to not exclude anything
|
||||
if(_allExcludes.size())
|
||||
prepare(basePath);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue