浏览代码

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 年之前
父节点
当前提交
b34b939a03
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;