Fix: lrcompletermodel.h -> child(int row)

This commit is contained in:
Dmitry Zagorodnev 2023-03-09 15:32:48 +03:00
parent de850125aa
commit fede9963be

View File

@ -13,7 +13,7 @@ public:
~CompleterItem();
int rowCount() const {return m_children.count();}
CompleterItem *child(int row) const {
return m_children.count() < row ? m_children.at(row).data() : nullptr;
return m_children.count() > row ? m_children.at(row).data() : nullptr;
}
CompleterItem* parent() const {return m_parent;}
int row() const{