From c745800e1818090afe2fe8433e361747fca272d4 Mon Sep 17 00:00:00 2001 From: Phenom Date: Tue, 8 Dec 2020 22:03:36 +0100 Subject: [PATCH] Fix Channel RsLink if update before UI Init --- retroshare-gui/src/gui/gxs/GxsGroupFrameDialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/gxs/GxsGroupFrameDialog.cpp b/retroshare-gui/src/gui/gxs/GxsGroupFrameDialog.cpp index 776d7ed93..8b44bf4ae 100644 --- a/retroshare-gui/src/gui/gxs/GxsGroupFrameDialog.cpp +++ b/retroshare-gui/src/gui/gxs/GxsGroupFrameDialog.cpp @@ -179,7 +179,7 @@ void GxsGroupFrameDialog::initUi() mInitialized = true; } -void GxsGroupFrameDialog::showEvent(QShowEvent *event) +void GxsGroupFrameDialog::showEvent(QShowEvent* /*event*/) { if (!mInitialized ) { @@ -1086,7 +1086,9 @@ void GxsGroupFrameDialog::updateMessageSummaryListReal(RsGxsGroupId groupId) void GxsGroupFrameDialog::updateGroupSummary() { - RsThread::async([this]() + if (!mInitialized) return;//UI not yet initialized + + RsThread::async([this]() { auto groupInfo = new std::list() ;