summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-27 10:37:31 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-27 10:37:31 +0200
commit55f7ddfb8c0ed45d5576675eae0616b8e5befeca (patch)
treed7e486e386a561bdd872a2ae1d0503cef4ee89b2
parenta5a3e5a178be80bc78106a6d407422103d15e3f1 (diff)
downloadserenity-55f7ddfb8c0ed45d5576675eae0616b8e5befeca.zip
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.
-rw-r--r--Libraries/LibGUI/AbstractView.h2
1 files changed, 1 insertions, 1 deletions
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: