diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-29 20:25:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-31 09:53:16 +0100 |
commit | 6069100a9b3330bb87b18a7c61e6f24f10d12e0e (patch) | |
tree | 6c9fb89692197afca676df88d2300c7a9fea2192 /framework | |
parent | 2d0a4182712673d8f7a5abe919cd2a1d5ece4a77 (diff) |
Resolves: tdf#124267 accelerator in tooltip
Change-Id: I5ab6aa00160aca427b260be535707fa55f6f953e
Reviewed-on: https://gerrit.libreoffice.org/81715
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/generictoolbarcontroller.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/uielement/generictoolbarcontroller.cxx b/framework/source/uielement/generictoolbarcontroller.cxx index 31b02118b2c9..62cc898f9c8f 100644 --- a/framework/source/uielement/generictoolbarcontroller.cxx +++ b/framework/source/uielement/generictoolbarcontroller.cxx @@ -220,7 +220,8 @@ void GenericToolbarController::statusChanged( const FeatureStateEvent& Event ) aStrValue = FwkResId(STR_SAVECOPYDOC) + aStrValue.copy( 4 ); } m_pToolbar->SetItemText( m_nID, aStrValue ); - m_pToolbar->SetQuickHelpText( m_nID, aStrValue ); + // tdf#124267 strip mnemonic from tooltip + m_pToolbar->SetQuickHelpText(m_nID, aStrValue.replaceFirst("~", "")); } if ( m_bMadeInvisible ) |