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
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 18:12:11 +00:00
Родитель 5c16a1eab5
Коммит 2925880180
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -1243,12 +1243,13 @@ NS_IMETHODIMP nsNavHistoryResult::GetCellText(PRInt32 rowIndex,
} }
case Column_Date: case Column_Date:
{ {
if (elt->mType == nsINavHistoryResult::RESULT_TYPE_HOST || if (elt->mTime == 0 ||
elt->mType == nsINavHistoryResult::RESULT_TYPE_DAY) { (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, // 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 // 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 // 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); _retval.Truncate(0);
} else { } else {
nsDateFormatSelector dateFormat; nsDateFormatSelector dateFormat;