From 9750241e7337f7d92f991da596653996e5e1d9f5 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Fri, 1 May 2020 00:38:07 +0200
Subject: [PATCH] Old Qt doesn't have .get...

---
 src/RoomList.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/RoomList.cpp b/src/RoomList.cpp
index 617710c41..092503878 100644
--- a/src/RoomList.cpp
+++ b/src/RoomList.cpp
@@ -379,11 +379,11 @@ RoomList::sortRoomsByLastMessage()
 
         int newIndex = 0;
         for (const auto &roomWidget : rooms_sort_cache_) {
-                const auto currentIndex = contentsLayout_->indexOf(roomWidget.get());
+                const auto currentIndex = contentsLayout_->indexOf(roomWidget.data());
 
                 if (currentIndex != newIndex) {
-                        contentsLayout_->removeWidget(roomWidget.get());
-                        contentsLayout_->insertWidget(newIndex, roomWidget.get());
+                        contentsLayout_->removeWidget(roomWidget.data());
+                        contentsLayout_->insertWidget(newIndex, roomWidget.data());
                 }
                 newIndex++;
         }
-- 
GitLab