Ver Fonte

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 há 4 anos atrás
pai
commit
55f7ddfb8c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Libraries/LibGUI/AbstractView.h

+ 1 - 1
Libraries/LibGUI/AbstractView.h

@@ -117,7 +117,7 @@ protected:
     ModelIndex m_hovered_index;
     ModelIndex m_hovered_index;
     ModelIndex m_last_valid_hovered_index;
     ModelIndex m_last_valid_hovered_index;
 
 
-    int m_key_column { 0 };
+    int m_key_column { -1 };
     SortOrder m_sort_order;
     SortOrder m_sort_order;
 
 
 private:
 private: