Commit 9304059f authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Sort items in KeyTreeView ascending by the first column by default

QHeaderView sorts descending by the first column by default, but I
think most users expect ascending sort order.
parent a96903d4
......@@ -458,7 +458,7 @@ void KeyTreeView::restoreLayout()
int sortOrder = m_group.readEntry("SortAscending", (int)Qt::AscendingOrder);
int sortColumn = m_group.readEntry("SortColumn", -1);
int sortColumn = m_group.readEntry("SortColumn", 0);
if (sortColumn >= 0) {
m_view->sortByColumn(sortColumn, (Qt::SortOrder)sortOrder);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment