diff options
author | Stephan Schäfer <ssa@openoffice.org> | 2002-11-29 07:27:00 +0000 |
---|---|---|
committer | Stephan Schäfer <ssa@openoffice.org> | 2002-11-29 07:27:00 +0000 |
commit | 5e623941a13cd309a4681793142727601dd6081b (patch) | |
tree | 9bda1d76cbd89f328ee956df90a828b7372caad0 /vcl | |
parent | 3d0950a405743e49810a88ac170b6c1b3438a0fb (diff) |
#105373# notify dehighlight in dtor
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/menu.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 7b86790ca9f6..5ad1c5f02f24 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -2,9 +2,9 @@ * * $RCSfile: menu.cxx,v $ * - * $Revision: 1.85 $ + * $Revision: 1.86 $ * - * last change: $Author: ssa $ $Date: 2002-11-22 08:40:36 $ + * last change: $Author: ssa $ $Date: 2002-11-29 08:27:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2926,6 +2926,11 @@ MenuFloatingWindow::MenuFloatingWindow( Menu* pMen, Window* pParent, WinBits nSt MenuFloatingWindow::~MenuFloatingWindow() { + // #105373# notify toolkit that highlight was removed + // otherwise the entry will not be read when the menu is opened again + if( nHighlightedItem != ITEMPOS_INVALID ) + pMenu->ImplCallEventListeners( VCLEVENT_MENU_DEHIGHLIGHT, nHighlightedItem ); + if( !bKeyInput && pMenu->pStartedFrom && !pMenu->pStartedFrom->bIsMenuBar ) { // #102461# remove highlight in parent |