summaryrefslogtreecommitdiff
path: root/Userland/Applications/BrowserSettings
diff options
context:
space:
mode:
authorAdam Jakubek <ajakubek@gmail.com>2022-08-29 21:52:07 +0200
committerSam Atkins <atkinssj@gmail.com>2022-08-31 10:32:41 +0100
commitf7e6593910ccc22babaf670607ffcd8b90f5bf37 (patch)
tree6de782e002618971141bfcd250537b7e8dcd3af0 /Userland/Applications/BrowserSettings
parent265b035dd54768685068ddec90f09541ee010904 (diff)
downloadserenity-f7e6593910ccc22babaf670607ffcd8b90f5bf37.zip
LibGUI: Fix assertion when handling removal of FileSystemModel's root
This commit fixes FileSystemModel behaviour when the root path of the model has been deleted. In this case, the model index resolved for the root path is invalid and passing it to 'begin_delete_rows' would trigger assertion failure. Instead of deleting all children rows one by one, we simply invalidate the whole model.
Diffstat (limited to 'Userland/Applications/BrowserSettings')
0 files changed, 0 insertions, 0 deletions