Skip to content

Fix assert when using an empty tab to load a folder

David Faure requested to merge work/dfaure/fix_assert into release/22.08
  1. create empty tab -> this calls FolderSettings::setCollection(invalid)
  2. switch to folder -> kmmainwidget calls writeFolderConfig() for the old folder (invalid), which calls FolderSettings::resource(), which asserts.

There's just nothing to save in such a case, skip saving.

Merge request reports