Bug 336831: Biff doesn't clear from system tray; r/sr=Neil

This commit is contained in:
mnyromyr%tprac.de 2006-05-11 18:24:12 +00:00
Родитель 0991896dc5
Коммит 3c96a79522
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -582,10 +582,12 @@ nsresult nsMessengerWinIntegration::AlertFinished()
// okay, we are done showing the alert
// now put an icon in the system tray, if allowed
PRBool showTrayIcon = !mSuppressBiffIcon;
nsresult rv;
nsCOMPtr<nsIPrefBranch> prefBranch(do_GetService(NS_PREFSERVICE_CONTRACTID, &rv));
if (NS_SUCCEEDED(rv) && prefBranch)
prefBranch->GetBoolPref(SHOW_TRAY_ICON_PREF, &showTrayIcon);
if (showTrayIcon)
{
nsCOMPtr<nsIPrefBranch> prefBranch(do_GetService(NS_PREFSERVICE_CONTRACTID));
if (prefBranch)
prefBranch->GetBoolPref(SHOW_TRAY_ICON_PREF, &showTrayIcon);
}
if (showTrayIcon)
{
GenericShellNotify(NIM_ADD);