From 8e5b5fe070ec20ffbc8c874bca2e464495fb6486 Mon Sep 17 00:00:00 2001 From: "Stefan.Borggraefe%gmx.de" Date: Thu, 27 Jul 2006 14:58:47 +0000 Subject: [PATCH] Bug 261544: Menu items "Delete host" and "Delete domain" aren't visible when history tree is empty r+sr=Neil git-svn-id: svn://10.0.0.236/trunk@204908 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/common/history/history.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mozilla/suite/common/history/history.js b/mozilla/suite/common/history/history.js index 3af11f226b4..d65a9d7f8c4 100644 --- a/mozilla/suite/common/history/history.js +++ b/mozilla/suite/common/history/history.js @@ -110,7 +110,11 @@ function HistoryCommonInit() if (gHistoryStatus) gHistoryTree.focus(); - gHistoryTree.view.selection.select(0); + + if (gHistoryTree.view.rowCount > 0) + gHistoryTree.view.selection.select(0); + else if (gHistoryStatus) + updateHistoryCommands(); } function HistoryPanelUnload()