diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | core/filterconstraint.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f14b5350..e71cf72e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- Windows: avoid crash when setting filter values for tag-style fields - mobile: add location service warning as required by Google Play - mobile: fix manually adding dives in the past [#2971] diff --git a/core/filterconstraint.cpp b/core/filterconstraint.cpp index 0468a935c..bcaf72460 100644 --- a/core/filterconstraint.cpp +++ b/core/filterconstraint.cpp @@ -686,8 +686,8 @@ void filter_constraint_set_stringlist(filter_constraint &c, const QString &s) return; } c.data.string_list->clear(); - for (const QString &s: s.split(",", SKIP_EMPTY)) - c.data.string_list->push_back(s.trimmed()); + for (const QString &part: s.split(",", SKIP_EMPTY)) + c.data.string_list->push_back(part.trimmed()); } void filter_constraint_set_timestamp_from(filter_constraint &c, timestamp_t from) |