From 17e883aea43290f56bd31ffb45e849fdb4c2d506 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 27 Oct 2016 10:45:14 -0700 Subject: [PATCH] Qt: Don't attach console immediately --- src/platform/qt/DebuggerConsole.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/qt/DebuggerConsole.cpp b/src/platform/qt/DebuggerConsole.cpp index d2aacd6dd..612e86e23 100644 --- a/src/platform/qt/DebuggerConsole.cpp +++ b/src/platform/qt/DebuggerConsole.cpp @@ -19,9 +19,8 @@ DebuggerConsole::DebuggerConsole(DebuggerConsoleController* controller, QWidget* connect(m_ui.prompt, SIGNAL(returnPressed()), this, SLOT(postLine())); connect(controller, SIGNAL(log(const QString&)), this, SLOT(log(const QString&))); + connect(m_ui.breakpoint, SIGNAL(clicked()), controller, SLOT(attach())); connect(m_ui.breakpoint, SIGNAL(clicked()), controller, SLOT(breakInto())); - - controller->attach(); } void DebuggerConsole::log(const QString& line) { @@ -31,6 +30,7 @@ void DebuggerConsole::log(const QString& line) { } void DebuggerConsole::postLine() { + m_consoleController->attach(); QString line = m_ui.prompt->text(); m_ui.prompt->clear(); if (line.isEmpty()) {