From d836694ce2da76b270c6e6c63c0bb291bd7e82c4 Mon Sep 17 00:00:00 2001 From: hunbernd Date: Sat, 5 Oct 2019 17:50:00 +0200 Subject: [PATCH] Reset to the first page when changing topics --- retroshare-gui/src/gui/Posted/PostedListWidget.cpp | 7 +++++++ retroshare-gui/src/gui/Posted/PostedListWidget.h | 1 + 2 files changed, 8 insertions(+) diff --git a/retroshare-gui/src/gui/Posted/PostedListWidget.cpp b/retroshare-gui/src/gui/Posted/PostedListWidget.cpp index 2d8d2cfd9..7450680bc 100644 --- a/retroshare-gui/src/gui/Posted/PostedListWidget.cpp +++ b/retroshare-gui/src/gui/Posted/PostedListWidget.cpp @@ -124,6 +124,13 @@ QIcon PostedListWidget::groupIcon() return QIcon(); } +void PostedListWidget::groupIdChanged() +{ + mPostIndex = 0; + GxsMessageFramePostWidget::groupIdChanged(); + updateShowText(); +} + /*****************************************************************************************/ // Overloaded from FeedHolder. QScrollArea *PostedListWidget::getScrollArea() diff --git a/retroshare-gui/src/gui/Posted/PostedListWidget.h b/retroshare-gui/src/gui/Posted/PostedListWidget.h index 9d472c7a5..8184a444c 100644 --- a/retroshare-gui/src/gui/Posted/PostedListWidget.h +++ b/retroshare-gui/src/gui/Posted/PostedListWidget.h @@ -44,6 +44,7 @@ public: /* GxsMessageFrameWidget */ virtual QIcon groupIcon(); + virtual void groupIdChanged(); /* FeedHolder */ virtual QScrollArea *getScrollArea();