Fix crash/assert on opening files with similar paths

Review Request #123793 - Created May 14, 2015 and submitted

Information
Albert Astals Cid
kate
Applications/15.04
347578
Reviewers
kate
dhaumann, michalhumpula

In KateFileTreeModel::handleDuplicitRootDisplay we need to check if check_root has been removed in the loop of rdir, if it has there's no need to remove it on the nrdir branch, doing so asserts on debug builds and on release builds it creates a broken tree structure that will crash later when trying to use it.

Doesn't crash anymore, added new test that passes, old tests still pass.

Michal Humpula
Christoph Cullmann
Albert Astals Cid
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 43de035acc6b43ef4327f9c4ec71a0285446233c by Albert Astals Cid to branch Applications/15.04.
Loading...