From 5a62f4fcb4caf10d9bee1f6738171f223b46d543 Mon Sep 17 00:00:00 2001 From: "dietrich@mozilla.com" Date: Mon, 4 Feb 2008 11:22:07 -0800 Subject: [PATCH] Bug 415521 ? when inserting into a sorted view we should insert at the end (for marco, r=dietrich, a=beltzner) --- browser/components/places/content/tree.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/components/places/content/tree.xml b/browser/components/places/content/tree.xml index 74190d3ce99d..fa18415b5c1d 100644 --- a/browser/components/places/content/tree.xml +++ b/browser/components/places/content/tree.xml @@ -542,6 +542,10 @@ container = lastSelected; index = -1; } + else if (resultview.isSorted()) { + // If we are into a sorted view we should append at the end + index = -1; + } else if (!this._disallowInsertion(lastSelected) && lastSelected.containerOpen && orientation == Ci.nsITreeView.DROP_AFTER) {