filter: avoid Windows crash
The scope confusion between s (the for loop variable) and s (the function argument) caused a crash in the s.split() on Windows. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
95a82ef035
commit
562d109aa1
@ -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]
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user