OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebdf9ee
)
default sort dates descending
author
Dennis Lim
<dlkj@users.sourceforge.net>
Wed, 12 Dec 2001 15:38:12 +0000
(15:38 +0000)
committer
Dennis Lim
<dlkj@users.sourceforge.net>
Wed, 12 Dec 2001 15:38:12 +0000
(15:38 +0000)
Src/DirView.cpp
patch
|
blob
|
history
diff --git
a/Src/DirView.cpp
b/Src/DirView.cpp
index
12c8a1f
..
6259b02
100644
(file)
--- a/
Src/DirView.cpp
+++ b/
Src/DirView.cpp
@@
-484,8
+484,16
@@
void CDirView::OnColumnClick(NMHDR *pNMHDR, LRESULT *pResult)
}
else
{
- m_bSortAscending = true;
m_sortColumn = pNMListView->iSubItem;
+ // date columns get default descending sort.
+ if(m_sortColumn==3 || m_sortColumn==4)
+ {
+ m_bSortAscending = false;
+ }
+ else
+ {
+ m_bSortAscending = true;
+ }
}
m_ctlSortHeader.SetSortImage(m_sortColumn, m_bSortAscending);