1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-12 03:25:47 +01:00

[muttator] fix selectThread

This commit is contained in:
Martin Stubenschrott
2008-05-06 13:37:57 +00:00
parent 5419d29a50
commit 3fe5216a5d

View File

@@ -195,7 +195,7 @@ liberator.Mail = function ()
liberator.mappings.add(modes, ["x"], liberator.mappings.add(modes, ["x"],
"Select thread", "Select thread",
function () { liberator.mail.selectThread(); }); function () { gDBView.ExpandAndSelectThreadByIndex(GetThreadTree().currentIndex, false) });
liberator.mappings.add(modes, ["d", "<Del>"], liberator.mappings.add(modes, ["d", "<Del>"],
"Move mail to Trash folder", "Move mail to Trash folder",
@@ -264,7 +264,6 @@ liberator.Mail = function ()
function (count) { liberator.mail.selectMessage(function (msg) { return true; }, false, false, false, count); }, function (count) { liberator.mail.selectMessage(function (msg) { return true; }, false, false, false, count); },
{ flags: liberator.Mappings.flags.COUNT }); { flags: liberator.Mappings.flags.COUNT });
// UNDO/REDO // UNDO/REDO
liberator.mappings.add(modes, ["u"], liberator.mappings.add(modes, ["u"],
"Undo", "Undo",
@@ -739,17 +738,6 @@ liberator.Mail = function ()
liberator.beep(); liberator.beep();
}, },
// gDBView.doCommand(nsMsgViewCommandType.selectThread);
selectThread: function()
{
var tree = GetThreadTree();
var key = gDBView.getKeyAt(tree.currentIndex);
var msg = gDBView.db.GetMsgHdrForKey(key);
var thread = gDBView.db.GetThreadContainingMsgHdr(msg);
var parent = parentIndex(tree.currentIndex);
gDBView.selection.rangedSelect(parent + thread.numChildren -1, parent, false);
}
}; };
//}}} //}}}