Diffusion Ark ed46c0d66e82

Fix crash when renaming top-level entries

Authored by elvisangelaccio on May 15 2017, 1:05 PM.

Description

Fix crash when renaming top-level entries

After commit 7781d6ef79, the model of the archive view changed to the
filter model. So we were asking m_model to get an index from
currentIndex, which instead belongs to m_filterModel.
The returned index is invalid and this causes a crash in the view.

BUG: 379802
FIXED-IN: 17.04.2

Differential Revision: https://phabricator.kde.org/D5869

Details