Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
a92d6fbc
Commit
a92d6fbc
authored
Oct 07, 2009
by
hjk
Browse files
debugger: disable l&w 'alternative formats' submenu if there aren't any
alternatives.
parent
21cd5480
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/watchwindow.cpp
View file @
a92d6fbc
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment