mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[OS/2] Bug 410566: replace ..apps filter in file picker with correct application extensions, r=mkaply
This commit is contained in:
parent
a9fa67b981
commit
4c8e92cd37
@ -621,9 +621,12 @@ PRUnichar * nsFilePicker::ConvertFromFileSystemCharset(const char *inString)
|
||||
NS_IMETHODIMP
|
||||
nsFilePicker::AppendFilter(const nsAString& aTitle, const nsAString& aFilter)
|
||||
{
|
||||
mFilters.AppendString(aFilter);
|
||||
if (aFilter.EqualsLiteral("..apps"))
|
||||
mFilters.AppendString(NS_LITERAL_STRING("*.exe;*.cmd;*.com;*.bat"));
|
||||
else
|
||||
mFilters.AppendString(aFilter);
|
||||
mTitles.AppendString(aTitle);
|
||||
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user