Skip to content

Commit

Permalink
fix sorting by date and by size (in file's view)
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Jun 9, 2012
1 parent 3f53d75 commit 2eb9257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/FileItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ void CFileItem::Serialize(CVariant& value)
void CFileItem::ToSortable(SortItem &sortable)
{
sortable[FieldPath] = m_strPath;
sortable[FieldDate] = (m_dateTime.IsValid()) ? m_dateTime.GetAsRFC1123DateTime() : "";
sortable[FieldSize] = (int) m_dwSize / 1000;
sortable[FieldDate] = (m_dateTime.IsValid()) ? m_dateTime.GetAsDBDateTime() : "";
sortable[FieldSize] = m_dwSize;
sortable[FieldDriveType] = m_iDriveType;
sortable[FieldStartOffset] = m_lStartOffset;
sortable[FieldStartOffset] = m_lEndOffset;
Expand Down

0 comments on commit 2eb9257

Please sign in to comment.