diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp index db3f33057b7..5cf8f4ff534 100644 --- a/src/plugins/debugger/watchwindow.cpp +++ b/src/plugins/debugger/watchwindow.cpp @@ -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);