mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix off by 1 in previousRoom condition
This commit is contained in:
parent
e6edb1daa3
commit
c69d2ef648
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ FilteredRoomlistModel::previousRoom()
|
|||
if (r) {
|
||||
int idx = roomidToIndex(r->roomId());
|
||||
idx--;
|
||||
if (idx > 0) {
|
||||
if (idx >= 0) {
|
||||
setCurrentRoom(
|
||||
data(index(idx, 0), RoomlistModel::Roles::RoomId).toString());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue