Merge remote-tracking branch 'origin/4.8' into 4.9

Change-Id: I8c11be2a6cb4301be4ef639ba25ee9735960db71
This commit is contained in:
Eike Ziller
2019-02-11 10:37:12 +01:00
2 changed files with 2 additions and 1 deletions

View File

@@ -409,7 +409,7 @@ void ThreadsHandler::setThreads(const GdbMi &data)
if (!m_currentThread && threads.childCount() > 0)
m_currentThread = rootItem()->childAt(0);
if (!m_currentThread) {
if (m_currentThread) {
const QModelIndex currentThreadIndex = m_currentThread->index();
threadSwitcher()->setCurrentIndex(currentThreadIndex.row());
}