Skip to content
Snippets Groups Projects
Commit a92d6fbc authored by hjk's avatar hjk
Browse files

debugger: disable l&w 'alternative formats' submenu if there aren't any

alternatives.
parent 21cd5480
No related merge requests found
...@@ -237,6 +237,10 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev) ...@@ -237,6 +237,10 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
individualFormatMenu.addAction(act); individualFormatMenu.addAction(act);
individualFormatActions.append(act); individualFormatActions.append(act);
} }
if (alternativeFormats.isEmpty()) {
typeFormatMenu.setEnabled(false);
individualFormatMenu.setEnabled(false);
}
} else { } else {
typeFormatMenu.setTitle(tr("Change format for type")); typeFormatMenu.setTitle(tr("Change format for type"));
typeFormatMenu.setEnabled(false); typeFormatMenu.setEnabled(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment