From d2597d874fcbf43364ecf79e6ad88fe4d838f781 Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Sat, 11 Aug 2012 18:00:35 -0430 Subject: Hide template bar after deleting selected templates. Change-Id: Ia6f874bcced622ab564ffc5b065d4a2c4ed246c0 --- sfx2/source/doc/templatedlg.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sfx2') diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index d4d366d1393f..b1625b24167c 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -949,6 +949,14 @@ void SfxTemplateManagerDlg::OnTemplateDelete () else ++pIter; } + + if (maSelTemplates.empty()) + { + mpTemplateBar->SetItemDown(TBI_TEMPLATE_DELETE,false); + mpTemplateBar->Show(false); + mpViewBar->Show(); + mpActionBar->Show(); + } } } -- cgit