fix string_split_to_qt

This commit is contained in:
Tatsuya79 2020-11-03 16:15:37 +01:00 committed by GitHub
parent c9b7122a08
commit f77e18ede0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -776,7 +776,7 @@ QStringList string_split_to_qt(QString str, char delim)
int spl = str.indexOf(delim, at);
/* Store split into list of extensions */
list << str.mid(at, (spl < 0 ? str.length() : spl));
list << str.mid(at, (spl < 0 ? -1 : spl - at));
/* No more splits */
if (spl < 0)