From 7a541b673d4e5a7229fb3b2a4cce177ce93663f0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 6 Dec 2018 12:32:08 +0000 Subject: [PATCH] Don't expire lookup-in-progress until all GUIInvokes have completed. --- qrenderdoc/Windows/Dialogs/RemoteManager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qrenderdoc/Windows/Dialogs/RemoteManager.cpp b/qrenderdoc/Windows/Dialogs/RemoteManager.cpp index d43c8600f..50fe59dd0 100644 --- a/qrenderdoc/Windows/Dialogs/RemoteManager.cpp +++ b/qrenderdoc/Windows/Dialogs/RemoteManager.cpp @@ -278,9 +278,10 @@ void RemoteManager::refreshHost(RDTreeWidgetItem *node) GUIInvoke::call(this, [node]() { node->setItalic(false); }); - m_Lookups.acquire(); - - GUIInvoke::call(this, [this]() { updateStatus(); }); + GUIInvoke::call(this, [this]() { + m_Lookups.acquire(); + updateStatus(); + }); }); th->selfDelete(true); th->start();