diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-11 18:00:35 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-11 19:57:49 -0430 |
commit | d2597d874fcbf43364ecf79e6ad88fe4d838f781 (patch) | |
tree | 13b6632e51c47f2689406d0d7dfcae32d1a59569 /sfx2 | |
parent | 4f6cf1f989de6e7d2ea63bcb84957ed2fbd039a2 (diff) |
Hide template bar after deleting selected templates.
Change-Id: Ia6f874bcced622ab564ffc5b065d4a2c4ed246c0
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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(); + } } } |