From 4424c3c45d26783eedb99fc180493d742572be03 Mon Sep 17 00:00:00 2001 From: mandlebro Date: Thu, 26 Jul 2018 10:46:17 +0100 Subject: [PATCH] Only enable emulation --- src/MainWindow.cpp | 8 ++++---- src/widgets/DebugToolbar.cpp | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index a45fd751..09acc8df 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -134,15 +134,15 @@ void MainWindow::initUI() DebugToolbar *debugToolbar = new DebugToolbar(this); ui->mainToolBar->addWidget(debugToolbar); // Debug menu - ui->menuDebug->addAction(debugToolbar->actionStart); + // ui->menuDebug->addAction(debugToolbar->actionStart); ui->menuDebug->addAction(debugToolbar->actionStartEmul); - ui->menuDebug->addAction(debugToolbar->actionAttach); + // ui->menuDebug->addAction(debugToolbar->actionAttach); ui->menuDebug->addSeparator(); ui->menuDebug->addAction(debugToolbar->actionStep); ui->menuDebug->addAction(debugToolbar->actionStepOver); ui->menuDebug->addSeparator(); - ui->menuDebug->addAction(debugToolbar->actionContinue); - ui->menuDebug->addAction(debugToolbar->actionContinueUntilCall); + // ui->menuDebug->addAction(debugToolbar->actionContinue); + // ui->menuDebug->addAction(debugToolbar->actionContinueUntilCall); ui->menuDebug->addAction(debugToolbar->actionContinueUntilSyscall); // Sepparator between undo/redo and goto lineEdit diff --git a/src/widgets/DebugToolbar.cpp b/src/widgets/DebugToolbar.cpp index 2099022a..ab0e0210 100644 --- a/src/widgets/DebugToolbar.cpp +++ b/src/widgets/DebugToolbar.cpp @@ -43,10 +43,11 @@ DebugToolbar::DebugToolbar(MainWindow *main, QWidget *parent) : startButton->setPopupMode(QToolButton::MenuButtonPopup); connect(startButton, &QToolButton::triggered, startButton, &QToolButton::setDefaultAction); QMenu *startMenu = new QMenu; - startMenu->addAction(actionStart); + // startMenu->addAction(actionStart); startMenu->addAction(actionStartEmul); - startMenu->addAction(actionAttach); - startButton->setDefaultAction(actionStart); + // startMenu->addAction(actionAttach); + // startButton->setDefaultAction(actionStart); + startButton->setDefaultAction(actionStartEmul); startButton->setMenu(startMenu); QToolButton *continueUntilButton = new QToolButton;