diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-08-26 01:24:56 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-08-26 08:51:56 +0200 |
commit | 52056a79fa94117ce0fc8f388458ceb48cc3be54 (patch) | |
tree | 3b9ff5a6466ffa6de1b88e49c9ced87d39df0c74 /src/Cache.cpp | |
parent | Fix SIGNAL SLOT issue on mtx types (diff) | |
download | nheko-52056a79fa94117ce0fc8f388458ceb48cc3be54.tar.xz |
Try to reduce memory usage by reusing avatar pixmaps
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r-- | src/Cache.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp index ef0f951e..083dbe89 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1830,10 +1830,7 @@ Cache::searchRooms(const std::string &query, std::uint8_t max_items) std::vector<RoomSearchResult> results; for (auto it = items.begin(); it != end; it++) { - results.push_back( - RoomSearchResult{it->second.first, - it->second.second, - QImage::fromData(image(txn, it->second.second.avatar_url))}); + results.push_back(RoomSearchResult{it->second.first, it->second.second}); } txn.commit(); |