added queuedConnection type in fillDisplay() between RsGxsBroadcastWidget and RsGxsBroadCastBase.

This commit is contained in:
cyril soler 2018-07-02 09:36:21 +02:00
parent 5ffd7a2352
commit abc5b840d2

View File

@ -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();