From abc5b840d265e6316d2d3efb5b3ef1dbf42629de Mon Sep 17 00:00:00 2001 From: cyril soler Date: Mon, 2 Jul 2018 09:36:21 +0200 Subject: [PATCH] added queuedConnection type in fillDisplay() between RsGxsBroadcastWidget and RsGxsBroadCastBase. --- retroshare-gui/src/gui/gxs/RsGxsUpdateBroadcastWidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/gxs/RsGxsUpdateBroadcastWidget.cpp b/retroshare-gui/src/gui/gxs/RsGxsUpdateBroadcastWidget.cpp index a6e3e5705..2f1ddf4d6 100644 --- a/retroshare-gui/src/gui/gxs/RsGxsUpdateBroadcastWidget.cpp +++ b/retroshare-gui/src/gui/gxs/RsGxsUpdateBroadcastWidget.cpp @@ -4,8 +4,9 @@ RsGxsUpdateBroadcastWidget::RsGxsUpdateBroadcastWidget(RsGxsIfaceHelper *ifaceImpl, QWidget *parent, Qt::WindowFlags flags) : QWidget(parent, flags) { - mBase = new RsGxsUpdateBroadcastBase(ifaceImpl, this); - connect(mBase, SIGNAL(fillDisplay(bool)), this, SLOT(fillDisplay(bool))); + mBase = new RsGxsUpdateBroadcastBase(ifaceImpl, this); + // The Queued connection is here to circumvent an apparent mutex problem in Qt + connect(mBase, SIGNAL(fillDisplay(bool)), this, SLOT(fillDisplay(bool)),Qt::QueuedConnection); mInterfaceHelper = ifaceImpl; } @@ -14,6 +15,7 @@ RsGxsUpdateBroadcastWidget::~RsGxsUpdateBroadcastWidget() { } + void RsGxsUpdateBroadcastWidget::fillComplete() { mBase->fillComplete();