summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-24 21:43:51 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-24 21:43:51 +0300
commit35067088f9ca02861d08f86c28843316b012b6a2 (patch)
tree4bc77a21932196e2f0daee64b588b361744d6dc4
parentRemove spacer & set sizePolicy on the timeline view & widgets (diff)
downloadnheko-35067088f9ca02861d08f86c28843316b012b6a2.tar.xz
Disable paint updates when removing the room filter
-rw-r--r--src/RoomList.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/RoomList.cpp b/src/RoomList.cpp
index 7a88b31b..143e0bdd 100644
--- a/src/RoomList.cpp
+++ b/src/RoomList.cpp
@@ -344,12 +344,14 @@ RoomList::closeJoinRoomDialog(bool isJoining, QString roomAlias)
 void
 RoomList::removeFilter()
 {
+        setUpdatesEnabled(false);
         for (int i = 0; i < contentsLayout_->count(); i++) {
                 auto widget =
                   qobject_cast<RoomInfoListItem *>(contentsLayout_->itemAt(i)->widget());
                 if (widget)
                         widget->show();
         }
+        setUpdatesEnabled(true);
 }
 
 void