Commit 79c445e8 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

fix first parts of failures found by model tester

let only have column 0 have children
parent e86b75eb
......@@ -611,6 +611,11 @@ int KateFileTreeModel::rowCount(const QModelIndex &parent) const
return m_root->childCount();
}
// we only have children for column 0
if (parent.column() != 0) {
return 0;
}
const ProxyItem *item = static_cast<ProxyItem *>(parent.internalPointer());
if (!item) {
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment