mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 08:48:07 +00:00
Bug 217509
wrong app description shown in helper app dialog r=bz sr=darin
This commit is contained in:
parent
cd6feee343
commit
def44d8c8b
@ -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