From e713eb7e24843f71679070fad03298719ee124ac Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 19 Aug 2019 14:06:11 -0400 Subject: [PATCH] Hide harmless error when no matches for filter --- src/qml/SidePane/DelegateAccount.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qml/SidePane/DelegateAccount.qml b/src/qml/SidePane/DelegateAccount.qml index 996ef014..30c0c700 100644 --- a/src/qml/SidePane/DelegateAccount.qml +++ b/src/qml/SidePane/DelegateAccount.qml @@ -16,8 +16,10 @@ HInteractiveRectangle { readonly property bool forceExpand: Boolean(accountRoomList.filter) - readonly property bool collapsed: - accountRoomList.collapseAccounts[model.data.user_id] || false + // Hide harmless error when a filter matches nothing + readonly property bool collapsed: try { + return accountRoomList.collapseAccounts[model.data.user_id] || false + } catch (err) {} onIsCurrentChanged: if (isCurrent) beHighlighted()