diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-02-24 10:26:09 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2020-02-24 08:32:03 +0000 |
commit | de5f4d1160ba10443fd58406e31bb492bd39e088 (patch) | |
tree | 8f42ec1bf7267364b15779affa0a2769e76396e3 /src/plugins/vcsbase | |
parent | e17c96cf11c90d2f36724265ed95655cac3e38e7 (diff) |
VCS: Fix broken annotation changes detection
isValid() is true for empty regexp...
Change-Id: I0af92574181736d5dde2ca48d3a8ab75ff6f14dc
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/vcsbase')
-rw-r--r-- | src/plugins/vcsbase/vcsbaseeditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp index 0c1e1eab24..aac8696c0e 100644 --- a/src/plugins/vcsbase/vcsbaseeditor.cpp +++ b/src/plugins/vcsbase/vcsbaseeditor.cpp @@ -1568,7 +1568,7 @@ QSet<QString> VcsBaseEditorWidget::annotationChanges() const QStringRef txt(&text); if (txt.isEmpty()) return changes; - if (d->m_annotationSeparatorPattern.isValid()) { + if (!d->m_annotationSeparatorPattern.pattern().isEmpty()) { const QRegularExpressionMatch match = d->m_annotationSeparatorPattern.match(txt); if (match.hasMatch()) txt.truncate(match.capturedStart()); |