From b6beeaa36cbb9c8291699cf15ea2d817c6c8751e Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Thu, 27 Jul 2006 14:57:36 +0000 Subject: [PATCH] Supplementary patch in bug 227053 fixing exception when switching group mode r=timeless sr=alecf git-svn-id: svn://10.0.0.236/trunk@204837 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/common/history/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/suite/common/history/history.js b/mozilla/suite/common/history/history.js index e7ca862007d..053c31ca27d 100644 --- a/mozilla/suite/common/history/history.js +++ b/mozilla/suite/common/history/history.js @@ -153,7 +153,7 @@ function historyOnSelect() gLastDomain = ""; var match; var currentIndex = gHistoryTree.currentIndex; - var rowIsContainer = gHistoryGrouping != "none" && currentIndex >= 0 && isContainer(gHistoryTree, currentIndex); + var rowIsContainer = currentIndex < 0 || (gHistoryGrouping != "none" && isContainer(gHistoryTree, currentIndex)); var url = rowIsContainer ? "" : gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL"); if (url) {