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

alternatives.
This commit is contained in:
hjk
2009-10-07 14:29:55 +02:00
parent 21cd54802a
commit a92d6fbcd8

View File

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