From 55f7ddfb8c0ed45d5576675eae0616b8e5befeca Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 27 Aug 2020 10:37:31 +0200 Subject: [PATCH] LibGUI: Don't make views sort by column 0 by default If you want to sort by some column, you can tell the view which one. --- Libraries/LibGUI/AbstractView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibGUI/AbstractView.h b/Libraries/LibGUI/AbstractView.h index a60e81346f..273f7f50f2 100644 --- a/Libraries/LibGUI/AbstractView.h +++ b/Libraries/LibGUI/AbstractView.h @@ -117,7 +117,7 @@ protected: ModelIndex m_hovered_index; ModelIndex m_last_valid_hovered_index; - int m_key_column { 0 }; + int m_key_column { -1 }; SortOrder m_sort_order; private: