[Libreoffice-commits] core.git: framework/source
Samuel Mehrbrodt
Samuel.Mehrbrodt at cib.de
Mon Aug 22 22:38:42 UTC 2016
framework/source/uielement/menubarmanager.cxx | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
New commits:
commit e2deb53e673fa2d6d61a528fe398806c453356d8
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date: Mon Aug 22 17:17:57 2016 +0200
tdf#101658 Don't show embedded frames in Window menu
Change-Id: I3e22a92815624cd9b287623c4958cf2df611bb97
Reviewed-on: https://gerrit.libreoffice.org/28325
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index fdeda1f..560db80 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -2007,11 +2007,17 @@ void MenuBarManager::UpdateSpecialWindowMenu( Menu* pMenu,const Reference< XComp
nActiveItemId = nItemId;
vcl::Window* pWin = VCLUnoHelper::GetWindow( xFrame->getContainerWindow() );
+ OUString sWindowTitle;
if ( pWin && pWin->IsVisible() )
- {
- aNewWindowListVector.push_back( pWin->GetText() );
- ++nItemId;
- }
+ sWindowTitle = pWin->GetText();
+
+ // tdf#101658 In case the frame is embedded somewhere, LO has no control over it.
+ // So we just skip it.
+ if ( sWindowTitle.isEmpty() )
+ continue;
+
+ aNewWindowListVector.push_back( sWindowTitle );
+ ++nItemId;
}
}
More information about the Libreoffice-commits
mailing list