diff options
author | alex-z <blackslayer4@gmail.com> | 2021-10-29 17:56:29 +0300 |
---|---|---|
committer | allexzander (Rebase PR Action) <allexzander@users.noreply.github.com> | 2021-11-02 11:54:06 +0300 |
commit | c52718c104d69e054371e407e96ab1e132895772 (patch) | |
tree | 8942af619ba3ba71ffc974cb7cd4f055c2e3d34b /src/libsync/discovery.cpp | |
parent | e4eaf9d88d2f69c49e804ed993e7dbb7f0fbeefe (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.cpp | 2 |
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; |