Qt: Don't attach console immediately
Jeffrey Pfau jeffrey@endrift.com
Thu, 27 Oct 2016 10:45:14 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
M
src/platform/qt/DebuggerConsole.cpp
→
src/platform/qt/DebuggerConsole.cpp
@@ -19,9 +19,8 @@ m_ui.setupUi(this);
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 @@ m_ui.log->verticalScrollBar()->setValue(m_ui.log->verticalScrollBar()->maximum());
} void DebuggerConsole::postLine() { + m_consoleController->attach(); QString line = m_ui.prompt->text(); m_ui.prompt->clear(); if (line.isEmpty()) {