mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
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…
x
Reference in New Issue
Block a user