summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2010-05-10 11:12:15 +0200
committerCarsten Driesner <cd@openoffice.org>2010-05-10 11:12:15 +0200
commit13b8697f854e1f1dc5e8ab06eab04f90bf99d219 (patch)
tree7bb0a0405bd7a8e465334e653aabb8be84969a98 /framework
parent4342408a8359e590f57b016baaf7d8dcfdebdbd4 (diff)
fwk142: #i104468# Ensure that focus is set to a floating window created by a toolbar controller
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/toolbarmanager.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index 8171ff2e5419..9b0ffa9ce993 100644
--- a/framework/source/uielement/toolbarmanager.cxx
+++ b/framework/source/uielement/toolbarmanager.cxx
@@ -1552,7 +1552,11 @@ IMPL_LINK( ToolBarManager, DropdownClick, ToolBox*, EMPTYARG )
Reference< XToolbarController > xController( pIter->second, UNO_QUERY );
if ( xController.is() )
- xController->createPopupWindow();
+ {
+ Reference< XWindow > xWin = xController->createPopupWindow();
+ if ( xWin.is() )
+ xWin->setFocus();
+ }
}
return 1;
}