Skip to content

Commit

Permalink
Fixed console's initial mode (normal,minimized,hidden).
Browse files Browse the repository at this point in the history
  • Loading branch information
epasveer committed Mar 29, 2024
1 parent 1bb9f37 commit 422d061
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/SeerGdbWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ SeerGdbWidget::SeerGdbWidget (QWidget* parent) : QWidget(parent) {
_gdbMonitor = 0;
_gdbProcess = 0;
_consoleWidget = 0;
_consoleMode = "normal";
_consoleScrollLines = 1000;
_breakpointsBrowserWidget = 0;
_watchpointsBrowserWidget = 0;
_catchpointsBrowserWidget = 0;
Expand All @@ -63,7 +65,6 @@ SeerGdbWidget::SeerGdbWidget (QWidget* parent) : QWidget(parent) {
_gdbRecordMode = "";
_gdbRecordDirection = "";
_gdbLoadPreviousBreakpoints = false;
_consoleScrollLines = 1000;
_rememberManualCommandCount = 10;
_currentFrame = -1;

Expand Down Expand Up @@ -3308,18 +3309,16 @@ void SeerGdbWidget::disconnectConsole () {

void SeerGdbWidget::setConsoleMode (const QString& mode) {

_consoleMode = mode;

if (_consoleWidget != 0) {
_consoleWidget->setMode(mode);
_consoleWidget->setMode(_consoleMode);
}
}

QString SeerGdbWidget::consoleMode () const {

if (_consoleWidget != 0) {
return _consoleWidget->mode();
}

return "normal";
return _consoleMode;
}

void SeerGdbWidget::setConsoleScrollLines (int count) {
Expand Down

0 comments on commit 422d061

Please sign in to comment.