FolderStatusModel: fix assert in Qt when the list of subfolder is empty
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 29 May 2017 11:00:43 +0000 (13:00 +0200)
committerOlivier Goffart <olivier@woboq.com>
Tue, 6 Jun 2017 12:49:03 +0000 (14:49 +0200)
commitc17a6783856720db84516a2e5deb39d4772372ce
treecb4db919ef7a37ac431c90ae0fe12e35964eb62e
parente2e56f45af059299d942f237ecf9cefbba0c43be
FolderStatusModel: fix assert in Qt when the list of subfolder is empty

Fix an assert that happens in beginInsertRows when opening a folder
and that folder is empty.
This can only be reproduced with a debug build of Qt.
src/gui/folderstatusmodel.cpp