mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Old Qt doesn't have .get...
This commit is contained in:
parent
00c4d2629a
commit
9750241e73
1 changed files with 3 additions and 3 deletions
|
@ -379,11 +379,11 @@ RoomList::sortRoomsByLastMessage()
|
||||||
|
|
||||||
int newIndex = 0;
|
int newIndex = 0;
|
||||||
for (const auto &roomWidget : rooms_sort_cache_) {
|
for (const auto &roomWidget : rooms_sort_cache_) {
|
||||||
const auto currentIndex = contentsLayout_->indexOf(roomWidget.get());
|
const auto currentIndex = contentsLayout_->indexOf(roomWidget.data());
|
||||||
|
|
||||||
if (currentIndex != newIndex) {
|
if (currentIndex != newIndex) {
|
||||||
contentsLayout_->removeWidget(roomWidget.get());
|
contentsLayout_->removeWidget(roomWidget.data());
|
||||||
contentsLayout_->insertWidget(newIndex, roomWidget.get());
|
contentsLayout_->insertWidget(newIndex, roomWidget.data());
|
||||||
}
|
}
|
||||||
newIndex++;
|
newIndex++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue