From 7042df003f92131308b6ed62b8b3238d77d71a0a Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 1 May 2020 04:56:03 -0400 Subject: [PATCH] Fix clicking on room in filtered list --- TODO.md | 1 + src/gui/MainPane/RoomList.qml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 210db5f4..39736c52 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,6 @@ # TODO +- account context menu - add account number binds - rename goto*account → scrollto*account diff --git a/src/gui/MainPane/RoomList.qml b/src/gui/MainPane/RoomList.qml index 96e5e3ae..b46c104e 100644 --- a/src/gui/MainPane/RoomList.qml +++ b/src/gui/MainPane/RoomList.qml @@ -2,6 +2,7 @@ import QtQuick 2.12 import QtQuick.Layouts 1.12 +import QtQml.Models 2.12 import ".." import "../Base" @@ -17,7 +18,7 @@ HListView { delegate: Room { id: room width: roomList.width - onActivated: showRoomAtIndex(model.index) + onActivated: showRoomAtIndex(DelegateModel.filteredIndex) ListView.onAdd: ParallelAnimation { HNumberAnimation { target: room; property: "opacity"; from: 0; to: 1;