[OS/2] Bug 410566: replace ..apps filter in file picker with correct application extensions, r=mkaply

This commit is contained in:
mozilla@weilbacher.org 2008-01-03 05:27:03 -08:00
parent 0391bf3b2d
commit 03b7bba825

View File

@ -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;
}