Browse Source

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.
Andreas Kling 4 years ago
parent
commit
55f7ddfb8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Libraries/LibGUI/AbstractView.h

+ 1 - 1
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: