Bug 217509

wrong app description shown in helper app dialog
r=bz sr=darin
This commit is contained in:
cbiesinger%web.de 2003-09-11 12:13:06 +00:00
parent cd6feee343
commit def44d8c8b
2 changed files with 14 additions and 0 deletions

View File

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

View File

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