diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-02 21:27:00 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-02 22:24:32 -0430 |
commit | 393e7add0b2c7f4f96dc309f7dcdf8d82e0ff813 (patch) | |
tree | cc94b862fbfcee17d46df6784e8725309de3f405 | |
parent | 5918b4b1808afdf85682d471024d6ae1f20fd8eb (diff) |
Display all templates in the overlay if we hide the search bar.
Change-Id: I4af95a758912e5d4c885f889fd2dedb48472f7b6
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 9982f5d51556..96ab14b86984 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -792,6 +792,10 @@ void SfxTemplateManagerDlg::OnTemplateSearch () mpSearchEdit->Show(!bVisible); mpSearchEdit->SetText(rtl::OUString()); + + // display all templates if we hide the search bar + if (bVisible && mpCurView->isOverlayVisible()) + mpCurView->filterTemplatesByApp(FILTER_APP_NONE); } void SfxTemplateManagerDlg::OnTemplateEdit () |