Windows native file dialogs: Split suffix list correctly.
Task-number: QTBUG-30185 Change-Id: I9a3d16eafb5417d6720a702af662fb219487549d Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
5fd509c4d7
commit
426f2ccafc
@ -1071,7 +1071,9 @@ static inline QString appendSuffix(const QString &fileName, const QString &filte
|
||||
if (suffixPos < 0)
|
||||
return fileName;
|
||||
suffixPos += 3;
|
||||
int endPos = filter.indexOf(QLatin1Char(';'), suffixPos + 1);
|
||||
int endPos = filter.indexOf(QLatin1Char(' '), suffixPos + 1);
|
||||
if (endPos < 0)
|
||||
endPos = filter.indexOf(QLatin1Char(';'), suffixPos + 1);
|
||||
if (endPos < 0)
|
||||
endPos = filter.indexOf(QLatin1Char(')'), suffixPos + 1);
|
||||
if (endPos < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user