Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex-z <blackslayer4@gmail.com>2021-10-29 17:56:29 +0300
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>2021-11-02 11:54:06 +0300
commitc52718c104d69e054371e407e96ab1e132895772 (patch)
tree8942af619ba3ba71ffc974cb7cd4f055c2e3d34b /src/libsync/discovery.cpp
parente4eaf9d88d2f69c49e804ed993e7dbb7f0fbeefe (diff)
Replace deprecated QRegExp with QRegularExpression.
Signed-off-by: alex-z <blackslayer4@gmail.com>
Diffstat (limited to 'src/libsync/discovery.cpp')
-rw-r--r--src/libsync/discovery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp
index 8fd6506b1..3fefa7cde 100644
--- a/src/libsync/discovery.cpp
+++ b/src/libsync/discovery.cpp
@@ -247,7 +247,7 @@ bool ProcessDirectoryJob::handleExcluded(const QString &path, const QString &loc
// FIXME: move to ExcludedFiles 's regexp ?
bool isInvalidPattern = false;
- if (excluded == CSYNC_NOT_EXCLUDED && !_discoveryData->_invalidFilenameRx.isEmpty()) {
+ if (excluded == CSYNC_NOT_EXCLUDED && !_discoveryData->_invalidFilenameRx.pattern().isEmpty()) {
if (path.contains(_discoveryData->_invalidFilenameRx)) {
excluded = CSYNC_FILE_EXCLUDE_INVALID_CHAR;
isInvalidPattern = true;