fix string_split_to_qt
This commit is contained in:
parent
c9b7122a08
commit
f77e18ede0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue