From 2925880180cf873374ce51d3fbe4a4add647bb7a Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 18 Jul 2006 18:12:11 +0000 Subject: [PATCH] Bug 318759 r=bryner, Hide 0 dates and dates for any folder type Original committer: brettw%gmail.com Original revision: 1.13 Original date: 2005/12/02 19:50:45 --- toolkit/components/places/src/nsNavHistoryResult.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/toolkit/components/places/src/nsNavHistoryResult.cpp b/toolkit/components/places/src/nsNavHistoryResult.cpp index 6928f2dbc1a..b44ff88fc35 100644 --- a/toolkit/components/places/src/nsNavHistoryResult.cpp +++ b/toolkit/components/places/src/nsNavHistoryResult.cpp @@ -1243,12 +1243,13 @@ NS_IMETHODIMP nsNavHistoryResult::GetCellText(PRInt32 rowIndex, } case Column_Date: { - if (elt->mType == nsINavHistoryResult::RESULT_TYPE_HOST || - elt->mType == nsINavHistoryResult::RESULT_TYPE_DAY) { + if (elt->mTime == 0 || + (elt->mType != nsINavHistoryResult::RESULT_TYPE_URL && + elt->mType != nsINavHistoryResult::RESULT_TYPE_VISIT)) { // hosts and days shouldn't have a value for the date column. Actually, // you could argue this point, but looking at the results, seeing the // most recently visited date is not what I expect, and gives me no - // information I know how to use. + // information I know how to use. Only show this for URLs and visits _retval.Truncate(0); } else { nsDateFormatSelector dateFormat;