summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Roth <robert.roth.off@gmail.com>2014-02-01 01:10:37 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-02-01 11:21:33 +0000
commite5b654a056d407cf8db975ee8042a0328627d4d8 (patch)
treed2cf5a2c0644a742d4e6c00fb1c087c86fe51df3
parent2c8193137abf7bb59e854f0aa675dfdad126974e (diff)
fdo#64337 Do not show empty findbar in startcenter.
Using the shortcut for search on the start center displayed an empty toolbar on the start center. This commit adds a check to see whether the command to execute in the startcenter is FocusToFindbar, and if it is, it skips executing it. Change-Id: I0835e87d4a1eef0fc9ff17c184b531592b3e2d5a
-rw-r--r--sfx2/source/dialog/backingwindow.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 70605d8db738..5f849cd45d9e 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -355,7 +355,8 @@ bool BackingWindow::Notify( NotifyEvent& rNEvt )
}
const KeyEvent* pEvt = rNEvt.GetKeyEvent();
const KeyCode& rKeyCode(pEvt->GetKeyCode());
- if( pEvt && mpAccExec->execute(rKeyCode) )
+ const OUString aCommand = mpAccExec->findCommand(svt::AcceleratorExecute::st_VCLKey2AWTKey(rKeyCode));
+ if((aCommand != "vnd.sun.star.findbar:FocusToFindbar") && pEvt && mpAccExec->execute(rKeyCode))
return true;
}