Browse Source

LibGUI: Delegate the tree column in SortingProxyModel

This was never properly delegated to the source model, so the tree
column would just always be zero.
kleines Filmröllchen 3 năm trước cách đây
mục cha
commit
b34b939a03
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Userland/Libraries/LibGUI/SortingProxyModel.h

+ 1 - 0
Userland/Libraries/LibGUI/SortingProxyModel.h

@@ -21,6 +21,7 @@ public:
 
     virtual ~SortingProxyModel() override;
 
+    virtual int tree_column() const override { return m_source->tree_column(); }
     virtual int row_count(ModelIndex const& = ModelIndex()) const override;
     virtual int column_count(ModelIndex const& = ModelIndex()) const override;
     virtual String column_name(int) const override;