all repos — mgba @ 17e883aea43290f56bd31ffb45e849fdb4c2d506

mGBA Game Boy Advance Emulator

Qt: Don't attach console immediately
Jeffrey Pfau jeffrey@endrift.com
Thu, 27 Oct 2016 10:45:14 -0700
commit

17e883aea43290f56bd31ffb45e849fdb4c2d506

parent

28a64fcbb82ba3862a873349172556f3a8fe265e

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/DebuggerConsole.cppsrc/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()) {