diff options
author | Vikas Pachdha <vikas.pachdha@qt.io> | 2019-02-08 17:49:57 +0100 |
---|---|---|
committer | Vikas Pachdha <vikas.pachdha@qt.io> | 2019-02-10 21:39:08 +0000 |
commit | 7388326bcab9278cb65ca5e003a0f309dd66d18d (patch) | |
tree | a702099ae2a9d7799abac9416d8b4267bf19a11c /src | |
parent | e27744e966d7c689b69f515b60972b0a17acc4ed (diff) | |
download | qt-creator-7388326bcab9278cb65ca5e003a0f309dd66d18d.tar.gz |
Fix crash while quitting debugging
Task-number: QTCREATORBUG-21684
Change-Id: I2a51d0666f2a591daeec34fc88ee12aa50265ff3
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/debugger/threadshandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/threadshandler.cpp b/src/plugins/debugger/threadshandler.cpp index a37d6fbe1d..42acf73b87 100644 --- a/src/plugins/debugger/threadshandler.cpp +++ b/src/plugins/debugger/threadshandler.cpp @@ -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()); } |