Commit 2ce0f42e authored by Alex Hermann's avatar Alex Hermann Committed by Alex Hermann

session: Sort session list by name again

Commit 4b0260eb changed the default order, probably by accident as it
was not mentioned in the commit message. This commit reverts that change.

Fixes BUG 422201
parent d29db43e
......@@ -372,7 +372,7 @@ void KateSessionManageDialog::updateSessionList()
m_sessionList->header()->setSectionResizeMode(0, QHeaderView::Stretch); // stretch "Session Name" column
m_sessionList->resizeColumnToContents(1); // Fit "Files" column
m_sessionList->resizeColumnToContents(2); // Fit "Last update" column
m_sessionList->sortByColumn(2, Qt::DescendingOrder); // sort by "Last update" column.. don't worry, it only sorts when the model data changes.
m_sessionList->sortByColumn(0, Qt::DescendingOrder); // sort by "Session Name" column.. don't worry, it only sorts when the model data changes.
if (!preferredItem) {
preferredItem = currSessionItem ? currSessionItem : activeSessionItem;
......
Markdown is supported
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