forked from qt-creator/qt-creator
qds: fix crash, if two or more projects be opened
Change-Id: I8b91f8ce0139334e765d6dd55e1afefbbe5366c5 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -41,6 +41,8 @@ bool ImageCacheConnectionManager::waitForCapturedData()
|
||||
disconnect(connections().front().socket.get(), &QIODevice::readyRead, nullptr, nullptr);
|
||||
|
||||
while (!m_capturedDataArrived) {
|
||||
if (!(connections().front().socket))
|
||||
return false;
|
||||
bool dataArrived = connections().front().socket->waitForReadyRead(10000);
|
||||
|
||||
if (!dataArrived)
|
||||
|
Reference in New Issue
Block a user