Commit a4aa0815 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix ETM::updatedCollection() never returning the updated collection

parent cea5b087
......@@ -1214,7 +1214,7 @@ Collection EntityTreeModel::updatedCollection(const QAbstractItemModel *model,
const QAbstractProxyModel *proxy = qobject_cast<const QAbstractProxyModel*>(model);
const QAbstractItemModel *_model = model;
while (proxy) {
auto _model = proxy->sourceModel();
_model = proxy->sourceModel();
proxy = qobject_cast<const QAbstractProxyModel*>(_model);
}
......
Markdown is supported
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