KMail: fix selecting a favorite that is filtered out in the foldertreeview.

Authored by dfaure on Mar 17 2018, 7:50 AM.

Description

KMail: fix selecting a favorite that is filtered out in the foldertreeview.

Summary:
Instead of reacting to a selection change in the foldertreeview's
selection model (which won't happen, if the newly selected folder is
filtered out in that view), let's make Pane react on the explicit call
to setCurrentFolder. For this we need the QModelIndex in the arguments
to that method (=> corresponding kmail change coming up).

Side fix: set mPreferEmptyTab to false in case setCurrentFolder is
called twice; but in the end I fixed that in
KMMainWidget::slotFolderChanged so that it's not called twice.

Test Plan:
Type "zzz" in the filter-lineedit for the folder-tree-view,
so everything disappears. Then try to select a favorite folder.

Reviewers: vkrause, dvratil, mlaurent

Subscribers: kde-pim

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D14139

Details

Committed
dfaureJul 17 2018, 2:30 PM
Differential Revision
D14139: KMail: fix selecting a favorite that is filtered out in the foldertreeview.
Parents
R94:9d0fba05744c: Fix some warning
Branches
Unknown
Tags
Unknown
References
tag: v18.07.80