Bug 217509
wrong app description shown in helper app dialog r=bz sr=darin git-svn-id: svn://10.0.0.236/trunk@146749 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8e8173accc
commit
9f0147b039
@ -298,7 +298,14 @@ NS_IMETHODIMP nsMIMEInfoImpl::SetPreferredApplicationHandler(nsIFile * aPreferre
|
||||
|
||||
NS_IMETHODIMP nsMIMEInfoImpl::GetHasDefaultHandler(PRBool * _retval)
|
||||
{
|
||||
#ifdef XP_WIN
|
||||
// On Windows, we ShellExecute any kind of file
|
||||
// (defaultApplication is always null on windows, too)
|
||||
// Most useful is probably presence/lack of default description
|
||||
*_retval = !mDefaultAppDescription.IsEmpty();
|
||||
#else
|
||||
*_retval = mDefaultApplication != nsnull;
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
@ -298,7 +298,14 @@ NS_IMETHODIMP nsMIMEInfoImpl::SetPreferredApplicationHandler(nsIFile * aPreferre
|
||||
|
||||
NS_IMETHODIMP nsMIMEInfoImpl::GetHasDefaultHandler(PRBool * _retval)
|
||||
{
|
||||
#ifdef XP_WIN
|
||||
// On Windows, we ShellExecute any kind of file
|
||||
// (defaultApplication is always null on windows, too)
|
||||
// Most useful is probably presence/lack of default description
|
||||
*_retval = !mDefaultAppDescription.IsEmpty();
|
||||
#else
|
||||
*_retval = mDefaultApplication != nsnull;
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user