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:
cbiesinger%web.de 2003-09-11 12:13:06 +00:00
parent 8e8173accc
commit 9f0147b039
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;
}