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 branches found
No related tags found
No related merge requests found
......@@ -237,6 +237,10 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
individualFormatMenu.addAction(act);
individualFormatActions.append(act);
}
if (alternativeFormats.isEmpty()) {
typeFormatMenu.setEnabled(false);
individualFormatMenu.setEnabled(false);
}
} else {
typeFormatMenu.setTitle(tr("Change format for type"));
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