diff options
Diffstat (limited to 'src/RoomInfoListItem.cc')
-rw-r--r-- | src/RoomInfoListItem.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/RoomInfoListItem.cc b/src/RoomInfoListItem.cc index 551895d6..f8989948 100644 --- a/src/RoomInfoListItem.cc +++ b/src/RoomInfoListItem.cc @@ -315,10 +315,7 @@ RoomInfoListItem::clearUnreadMessageCount() void RoomInfoListItem::setPressedState(bool state) { - if (!isPressed_ && state) { - isPressed_ = state; - update(); - } else if (isPressed_ && !state) { + if (isPressed_ != state) { isPressed_ = state; update(); } |