Make persistence store keys shorter and without spaces
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#define wxPERSIST_DVLC_COL_PREFIX "Column"
|
#define wxPERSIST_DVLC_COL_PREFIX "Column"
|
||||||
|
|
||||||
#define wxPERSIST_DVLC_WIDTH "ColWidth"
|
#define wxPERSIST_DVLC_WIDTH "Width"
|
||||||
#define wxPERSIST_DVLC_SORT_KEY "SortKey"
|
#define wxPERSIST_DVLC_SORT_KEY "SortKey"
|
||||||
#define wxPERSIST_DVLC_SORT_ASC "SortAsc"
|
#define wxPERSIST_DVLC_SORT_ASC "SortAsc"
|
||||||
|
|
||||||
@@ -106,6 +106,7 @@ public:
|
|||||||
|
|
||||||
RestoreValue(wxPERSIST_DVLC_SORT_ASC, &sortAsc);
|
RestoreValue(wxPERSIST_DVLC_SORT_ASC, &sortAsc);
|
||||||
control->GetColumn(sortColumn)->SetSortOrder(sortAsc);
|
control->GetColumn(sortColumn)->SetSortOrder(sortAsc);
|
||||||
|
control->GetModel()->Resort();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user