diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-08 08:09:54 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-08 10:25:55 -0430 |
commit | 5bb9e2f5bb136d8c5844584e3203e8245094d409 (patch) | |
tree | 50a04257aa364fe8a80bd594ae5cf0d4ed5dd6db | |
parent | 484aba1a6ed88bae9102dcf758e1499fb9ead0b1 (diff) |
Display delete option when viewing a remote repository.
Change-Id: I63e6a0e2ef9a18144d97629ddf18bd91ecc0e115
-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 9c3c1c2cfdbb..c029fc8a3283 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -921,6 +921,8 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal) { mpCurView = maView; + mpViewBar->HideItem(TBI_TEMPLATE_FOLDER_DEL); + // Enable deleting items from the filesystem mpTemplateBar->ShowItem(TBI_TEMPLATE_DELETE); @@ -931,6 +933,8 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal) { mpCurView = mpOnlineView; + mpViewBar->ShowItem(TBI_TEMPLATE_FOLDER_DEL); + // Disable deleting items from remote repositories mpTemplateBar->HideItem(TBI_TEMPLATE_DELETE); |