Commit 80a145c1 authored by Christoph Feck's avatar Christoph Feck

Fix assert with Qt debug builds

KFilePlacesModel creates its items delayed.
Keep the bootstrapping in case this changes.

BUG: 382542
FIXED-IN: 17.08.0
parent f778ab77
......@@ -157,7 +157,9 @@ PlaceTreeModel::PlaceTreeModel(QObject* parent)
connect(d->mPlacesModel, &KFilePlacesModel::rowsAboutToBeRemoved, this, &PlaceTreeModel::slotPlacesRowsAboutToBeRemoved);
// Bootstrap
slotPlacesRowsInserted(QModelIndex(), 0, d->mPlacesModel->rowCount() - 1);
if (d->mPlacesModel->rowCount() > 0) {
slotPlacesRowsInserted(QModelIndex(), 0, d->mPlacesModel->rowCount() - 1);
}
}
PlaceTreeModel::~PlaceTreeModel()
......
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