summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-04 18:55:08 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-05 19:08:59 +0200
commitdb24f174b1efe5552ebeb69f441f490a5b676ad2 (patch)
treec724ea459e88201cdd6ac58b7a6ba2959aa99960 /src
parentFix self counting as read message (diff)
downloadnheko-db24f174b1efe5552ebeb69f441f490a5b676ad2.tar.xz
Fix jumpy room list, when sort order is ambiguous
Diffstat (limited to 'src')
-rw-r--r--src/RoomList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RoomList.cpp b/src/RoomList.cpp

index 981b1f11..85a22026 100644 --- a/src/RoomList.cpp +++ b/src/RoomList.cpp
@@ -384,7 +384,7 @@ RoomList::sortRoomsByLastMessage() { isSortPending_ = false; - std::sort(begin(rooms_sort_cache_), end(rooms_sort_cache_), room_sort{}); + std::stable_sort(begin(rooms_sort_cache_), end(rooms_sort_cache_), room_sort{}); int newIndex = 0; for (const auto &roomWidget : rooms_sort_cache_) {