diff options
author | Christian Stenger <christian.stenger@qt.io> | 2019-09-26 14:37:54 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2019-09-30 04:33:58 +0000 |
commit | 716ec39ae09eb8078583025daec2d744bd023698 (patch) | |
tree | 2c5e0d9cbdf6f6856823959ec40a31d9fb9856c3 /src | |
parent | 38292de68a707eeaa2e5ece5a16084c00f8e4bef (diff) | |
download | qt-creator-716ec39ae09eb8078583025daec2d744bd023698.tar.gz |
Debugger: Fix automatic raising of Expressions
When adding a new expression automatically raise the
Expressions widget if it is not shown already.
Change-Id: If89e4e4fbf8cbe57e0f08478cd2d3b9f4797f5ad
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/debugger/debuggerengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp index 6b94e5025d..dc067e65b4 100644 --- a/src/plugins/debugger/debuggerengine.cpp +++ b/src/plugins/debugger/debuggerengine.cpp @@ -2260,8 +2260,8 @@ void DebuggerEngine::openDisassemblerView(const Location &location) void DebuggerEngine::raiseWatchersWindow() { - if (d->m_watchersView) { - if (auto dock = qobject_cast<QDockWidget *>(d->m_watchersView->parentWidget())) { + if (d->m_watchersView && d->m_watchersWindow) { + if (auto dock = qobject_cast<QDockWidget *>(d->m_watchersWindow->parentWidget())) { if (QAction *act = dock->toggleViewAction()) { if (!act->isChecked()) QTimer::singleShot(1, act, [act] { act->trigger(); }); |