From 8a8bfb1828a553c0dfcda926c2fa74774e806251 Mon Sep 17 00:00:00 2001 From: yossizap Date: Tue, 28 Jan 2020 19:11:40 +0000 Subject: [PATCH] Make breakpoints available in the debug menu --- src/core/MainWindow.cpp | 7 ++++++- src/core/MainWindow.ui | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/MainWindow.cpp b/src/core/MainWindow.cpp index e5e79a80..38c5cb14 100644 --- a/src/core/MainWindow.cpp +++ b/src/core/MainWindow.cpp @@ -1208,7 +1208,12 @@ void MainWindow::showDebugDocks() void MainWindow::enableDebugWidgetsMenu(bool enable) { - ui->menuAddDebugWidgets->setEnabled(enable); + for (QAction *action : ui->menuAddDebugWidgets->actions()) { + // The breakpoints menu should be available outside of debug + if (!action->text().contains("Breakpoints")) { + action->setEnabled(enable); + } + } } void MainWindow::resetToDefaultLayout() diff --git a/src/core/MainWindow.ui b/src/core/MainWindow.ui index 48891d7d..9b181c0c 100644 --- a/src/core/MainWindow.ui +++ b/src/core/MainWindow.ui @@ -145,7 +145,6 @@ -