mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
[OS/2] Bug 410566: replace ..apps filter in file picker with correct application extensions, r=mkaply
This commit is contained in:
parent
0391bf3b2d
commit
03b7bba825
@ -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