Merge remote-tracking branch 'origin/4.10' into 4.11

Change-Id: Ic05bd53ea060d42c2013884972c05de08ed63f10
This commit is contained in:
Eike Ziller
2019-09-30 10:36:00 +02:00
4 changed files with 48 additions and 22 deletions

View File

@@ -2285,8 +2285,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(); });