summaryrefslogtreecommitdiff
path: root/vcl/source/helper/commandinfoprovider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/helper/commandinfoprovider.cxx')
-rw-r--r--vcl/source/helper/commandinfoprovider.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx
index 95f252a2f1da..6cf0adf4cb53 100644
--- a/vcl/source/helper/commandinfoprovider.cxx
+++ b/vcl/source/helper/commandinfoprovider.cxx
@@ -158,8 +158,7 @@ OUString CommandInfoProvider::GetPopupLabelForCommand (
OUString CommandInfoProvider::GetTooltipForCommand (
const OUString& rsCommandName,
- const Reference<frame::XFrame>& rxFrame,
- bool bIncludeShortcut)
+ const Reference<frame::XFrame>& rxFrame)
{
SetFrame(rxFrame);
@@ -167,11 +166,9 @@ OUString CommandInfoProvider::GetTooltipForCommand (
if (sLabel.isEmpty())
sLabel = GetCommandProperty("Name", rsCommandName);
- if (bIncludeShortcut) {
- const OUString sShortCut(GetCommandShortcut(rsCommandName, rxFrame));
- if (!sShortCut.isEmpty())
- return sLabel + " (" + sShortCut + ")";
- }
+ const OUString sShortCut(GetCommandShortcut(rsCommandName, rxFrame));
+ if (!sShortCut.isEmpty())
+ return sLabel + " (" + sShortCut + ")";
return sLabel;
}