зеркало из https://github.com/mozilla/pjs.git
supplementary patch for bug 99048: Automatically mark newsgroup read [when
leaving folder] patch by Karsten D��sterloh <mnyromyr@tprac.de> r=bienvenu sr=neil
This commit is contained in:
Родитель
bb186586db
Коммит
2a776e3624
|
@ -1154,10 +1154,12 @@ function OnLeavingFolder(aFolder)
|
|||
{
|
||||
try
|
||||
{
|
||||
if (gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
|
||||
// Mark all messages of aFolder as read:
|
||||
// We can't use the command controller, because it is already tuned in to the
|
||||
// new folder, so we just mimic its behaviour wrt goDoCommand('cmd_markAllRead').
|
||||
if (gDBView && gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
|
||||
{
|
||||
// mark all messages of aFolder as read
|
||||
goDoCommand('cmd_markAllRead');
|
||||
gDBView.doCommand(nsMsgViewCommandType.markAllRead);
|
||||
}
|
||||
}
|
||||
catch(e){/* ignore */}
|
||||
|
|
|
@ -1193,10 +1193,12 @@ function OnLeavingFolder(aFolder)
|
|||
{
|
||||
try
|
||||
{
|
||||
if (gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
|
||||
// Mark all messages of aFolder as read:
|
||||
// We can't use the command controller, because it is already tuned in to the
|
||||
// new folder, so we just mimic its behaviour wrt goDoCommand('cmd_markAllRead').
|
||||
if (gDBView && gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
|
||||
{
|
||||
// mark all messages of aFolder as read
|
||||
goDoCommand('cmd_markAllRead');
|
||||
gDBView.doCommand(nsMsgViewCommandType.markAllRead);
|
||||
}
|
||||
}
|
||||
catch(e){/* ignore */}
|
||||
|
|
Загрузка…
Ссылка в новой задаче