Disable paint updates when removing the room filter

This commit is contained in:
Konstantinos Sideris 2018-07-24 21:43:51 +03:00
parent 6583686a7c
commit 35067088f9

View file

@ -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