mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +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) {
|
if (r) {
|
||||||
int idx = roomidToIndex(r->roomId());
|
int idx = roomidToIndex(r->roomId());
|
||||||
idx--;
|
idx--;
|
||||||
if (idx > 0) {
|
if (idx >= 0) {
|
||||||
setCurrentRoom(
|
setCurrentRoom(
|
||||||
data(index(idx, 0), RoomlistModel::Roles::RoomId).toString());
|
data(index(idx, 0), RoomlistModel::Roles::RoomId).toString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue