When I delete a Search Results folder KMail loses all the Local Folders. Close/restart of KMail restores them. Running Kuntu 14.10 64bit in a virtual machine (Virtual Box Guest under Win7 Host). Reproducible: Always Steps to Reproduce: 1.Do a Find Messages search 2.Look at result folder 3.Delete Last Search folder Actual Results: All Local Folders disappear Expected Results: Just the one folder disappears They're not lost. Restart KMail and they're back. That's a clunky workaround. Just leaving a Last Search folder is the easier workaround, but I'm in the habit of deleting old searches, and other users might panic.
Created attachment 96930 [details] Screenshot I can reproduce this bug with KMail 5.1.1. See screenshot.
*** Bug 341746 has been marked as a duplicate of this bug. ***
*** Bug 346280 has been marked as a duplicate of this bug. ***
Git commit e2a688651cc5fb3cca682c4153866609713e76a9 by David Faure. Committed on 22/07/2016 at 22:09. Pushed by dfaure into branch 'master'. KRecursiveFilterProxyModel: fix QSFPM corruption due to filtering out rowsRemoved signal If the row being removed from the source model isn't shown by KRFPM, it's correct that we don't need to emit any signals, however we still need to tell our base class QSFPM so that it updates the mappings of the visible siblings below that removed row. Testcase: deleting the Last Search folder in kmail (full integration test for this testcase will be added to mailcommon). REVIEW: 128428 FIXED-IN: 5.25 M +3 -1 autotests/krecursivefilterproxymodeltest.cpp M +0 -20 src/krecursivefilterproxymodel.cpp http://commits.kde.org/kitemmodels/e2a688651cc5fb3cca682c4153866609713e76a9
Git commit e58d4813b9eb6125bad83cc4fd576d5d75d31c4b by David Faure. Committed on 28/10/2016 at 09:11. Pushed by dfaure into branch 'KDE/4.14'. KRecursiveFilterProxyModel: fix QSFPM corruption due to filtering out rowsRemoved signal Backported from e2a6886 in kitemmodels. If the row being removed from the source model isn't shown by KRFPM, it's correct that we don't need to emit any signals, however we still need to tell our base class QSFPM so that it updates the mappings of the visible siblings below that removed row. Testcase: deleting the Last Search folder in kmail (full integration test for this testcase will be added to mailcommon). REVIEW: 128428 M +0 -26 kdeui/itemviews/krecursivefilterproxymodel.cpp M +3 -1 kdeui/tests/krecursivefilterproxymodeltest.cpp http://commits.kde.org/kdelibs/e58d4813b9eb6125bad83cc4fd576d5d75d31c4b