Qt: Don't attach console immediately

This commit is contained in:
Jeffrey Pfau 2016-10-27 10:45:14 -07:00
parent 28a64fcbb8
commit 17e883aea4
1 changed files with 2 additions and 2 deletions

View File

@ -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()) {