aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-10-07 14:29:55 +0200
committercon <qtc-committer@nokia.com>2009-10-07 19:15:31 +0200
commited0ecce542cbd1bb5cf56f789ef47bad7f3c71bf (patch)
tree7d74f149259a165c8588d425925b3a2e200fcce5
parentb771f83495ef44d89133cbbf4c36ed6a0de01ca7 (diff)
debugger: disable l&w 'alternative formats' submenu if there aren't any
alternatives. (cherry picked from commit a92d6fbcd8403bf9fa9c2e1cd8be9f6769ef6e13)
-rw-r--r--src/plugins/debugger/watchwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp
index db3f33057b..5cf8f4ff53 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);