Commit 1a14f27f authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

fix segfault in ProxyItem::remChild by double-removing the same item

parent 0b2997ad
......@@ -1164,7 +1164,8 @@ void KateFileTreeModel::handleDuplicitRootDisplay(ProxyItemDir *init)
const QString xy = rdir + QLatin1Char('/');
if (node->path().startsWith(xy)) {
beginRemoveRows(QModelIndex(), node->row(), node->row());
check_root_removed = node == check_root;
// check_root_removed must be sticky
check_root_removed = check_root_removed || (node == check_root);
insertItemInto(irdir, node);
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