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:
Friedemann Kleint 2013-03-19 09:52:31 +01:00 committed by The Qt Project
parent 5fd509c4d7
commit 426f2ccafc

View File

@ -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)