Disable paint updates when removing the room filter
This commit is contained in:
parent
6583686a7c
commit
35067088f9
@ -344,12 +344,14 @@ RoomList::closeJoinRoomDialog(bool isJoining, QString roomAlias)
|
|||||||
void
|
void
|
||||||
RoomList::removeFilter()
|
RoomList::removeFilter()
|
||||||
{
|
{
|
||||||
|
setUpdatesEnabled(false);
|
||||||
for (int i = 0; i < contentsLayout_->count(); i++) {
|
for (int i = 0; i < contentsLayout_->count(); i++) {
|
||||||
auto widget =
|
auto widget =
|
||||||
qobject_cast<RoomInfoListItem *>(contentsLayout_->itemAt(i)->widget());
|
qobject_cast<RoomInfoListItem *>(contentsLayout_->itemAt(i)->widget());
|
||||||
if (widget)
|
if (widget)
|
||||||
widget->show();
|
widget->show();
|
||||||
}
|
}
|
||||||
|
setUpdatesEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user