mirror of https://github.com/mgba-emu/mgba.git
Qt: Don't attach console immediately
This commit is contained in:
parent
28a64fcbb8
commit
17e883aea4
|
@ -19,9 +19,8 @@ DebuggerConsole::DebuggerConsole(DebuggerConsoleController* controller, QWidget*
|
||||||
|
|
||||||
connect(m_ui.prompt, SIGNAL(returnPressed()), this, SLOT(postLine()));
|
connect(m_ui.prompt, SIGNAL(returnPressed()), this, SLOT(postLine()));
|
||||||
connect(controller, SIGNAL(log(const QString&)), this, SLOT(log(const QString&)));
|
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()));
|
connect(m_ui.breakpoint, SIGNAL(clicked()), controller, SLOT(breakInto()));
|
||||||
|
|
||||||
controller->attach();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebuggerConsole::log(const QString& line) {
|
void DebuggerConsole::log(const QString& line) {
|
||||||
|
@ -31,6 +30,7 @@ void DebuggerConsole::log(const QString& line) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebuggerConsole::postLine() {
|
void DebuggerConsole::postLine() {
|
||||||
|
m_consoleController->attach();
|
||||||
QString line = m_ui.prompt->text();
|
QString line = m_ui.prompt->text();
|
||||||
m_ui.prompt->clear();
|
m_ui.prompt->clear();
|
||||||
if (line.isEmpty()) {
|
if (line.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue