diff options
author | David Schulz <david.schulz@qt.io> | 2018-10-19 10:43:38 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2018-10-19 09:28:34 +0000 |
commit | 17e6cb5ff714cdfe5c1519e9d7fcbdd1bba77fef (patch) | |
tree | 4ead072dfc5cbd789035f2120df18354249b8108 /src/plugins | |
parent | d810c5b77ffc0b09f3ded01cd2758dd13211b33c (diff) | |
download | qt-creator-17e6cb5ff714cdfe5c1519e9d7fcbdd1bba77fef.tar.gz |
ProjectExplorer: do not send non existing debug output
Task-number: QTCREATORBUG-20848
Fixes: QTCREATORBUG-21215
Change-Id: I55366b42a94721ea800d0babe72f24d343d55de2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/projectexplorer/windebuginterface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/windebuginterface.cpp b/src/plugins/projectexplorer/windebuginterface.cpp index 985fec933f..25aa953e64 100644 --- a/src/plugins/projectexplorer/windebuginterface.cpp +++ b/src/plugins/projectexplorer/windebuginterface.cpp @@ -177,6 +177,8 @@ void WinDebugInterface::dispatchDebugOutput() m_outputMutex.lock(); for (auto &entry : m_debugOutput) { std::vector<QString> &src = entry.second; + if (src.empty()) + continue; QString dst; size_t n = std::min(maxMessagesToSend, src.size()); for (size_t i = 0; i < n; ++i) |