• Olivier Goffart's avatar
    FolderStatusModel: Fix insert/remove items when there are labels · 775a1c9a
    Olivier Goffart authored
    Otherwise it might happen that the model is inconsistant and this can
    lead to crash in the worst case.
    
    (For example, if there was a "fetching" label, and we hide it because it
    was a 404. In this case, we would not call begin/endRemoveRows, so the
    view could still call the model with an index of row 0, that used to be
    for the label, but now correspond to the first element of _subs. And
    because _subs is empty, this could lead to crashes)
    775a1c9a
Name
Last commit
Last update
admin Loading commit data...
binary @ 0d89ac77 Loading commit data...
cmake Loading commit data...
csync Loading commit data...
doc Loading commit data...
resources Loading commit data...
shell_integration Loading commit data...
src Loading commit data...
test Loading commit data...
theme Loading commit data...
translations Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.tag Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.documentation Loading commit data...
CPackOptions.cmake.in Loading commit data...
ChangeLog Loading commit data...
Jenkinsfile Loading commit data...
OWNCLOUD.cmake Loading commit data...
OwnCloudCPack.cmake Loading commit data...
README.md Loading commit data...
VERSION.cmake Loading commit data...
client.qrc Loading commit data...
config.h.in Loading commit data...
issue_template.md Loading commit data...
mirall.desktop.in Loading commit data...
sync-exclude.lst Loading commit data...
theme.qrc Loading commit data...