From 93eba7ce92dbba1a8cf85c1a36348cfe313c6ebe Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 14 Nov 2020 11:31:07 -0400 Subject: [PATCH] Fix incorrect account switching keybind order The keybinds to switch to the first room in account number X did not behave properly when the accounts weren't ordered lexically. --- src/gui/MainPane/RoomList.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/MainPane/RoomList.qml b/src/gui/MainPane/RoomList.qml index d412d29b..dc4e9e9c 100644 --- a/src/gui/MainPane/RoomList.qml +++ b/src/gui/MainPane/RoomList.qml @@ -52,7 +52,7 @@ HListView { } function goToAccountNumber(num) { - const index = Object.entries(accountIndice).sort()[num][1] + const index = Object.entries(accountIndice)[num][1] model.get(index + 1).type === "Room" ? currentIndex = index + 1 :