Skip to content
Snippets Groups Projects
Commit 73e3161c authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Disable paint updates while applying room filtering (#380)

parent 6c65213c
No related branches found
No related tags found
No related merge requests found
......@@ -355,6 +355,9 @@ RoomList::removeFilter()
void
RoomList::applyFilter(const std::map<QString, bool> &filter)
{
// Disabling paint updates will resolve issues with screen flickering on big room lists.
setUpdatesEnabled(false);
for (int i = 0; i < contentsLayout_->count(); i++) {
// If filter contains the room for the current RoomInfoListItem,
// show the list item, otherwise hide it
......@@ -370,6 +373,8 @@ RoomList::applyFilter(const std::map<QString, bool> &filter)
listitem->hide();
}
setUpdatesEnabled(true);
// If the already selected room is part of the group, make sure it's visible.
if (!selectedRoom_.isEmpty() && (filter.find(selectedRoom_) != filter.end()))
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment