Make breakpoints available in the debug menu

This commit is contained in:
yossizap 2020-01-28 19:11:40 +00:00
parent ce22de5576
commit 8a8bfb1828
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -145,7 +145,6 @@
<addaction name="actionSymbols"/>
<addaction name="actionVTables"/>
<addaction name="actionZignatures"/>
<addaction name="actionBreakpoint"/>
</widget>
<widget class="QMenu" name="menuAddDebugWidgets">
<property name="title">