FolderList.Tree: Fix search folder not appearing when selected

Fixes #744
This commit is contained in:
Michael Gratton 2020-03-21 18:15:37 +11:00
parent 2f3f2ca8d1
commit 652f77f76a

View file

@ -80,7 +80,7 @@ public class FolderList.Tree : Sidebar.Tree, Geary.BaseInterface {
}
private void on_entry_selected(Sidebar.SelectableEntry selectable) {
FolderEntry? entry = selectable as FolderEntry;
AbstractFolderEntry? entry = selectable as AbstractFolderEntry;
if (entry != null) {
this.selected = entry.folder;
folder_selected(entry.folder);