diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 3b327dfcb66a..9d0cd285183a 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -868,6 +868,9 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal) mpViewBar->ShowItem(TBI_TEMPLATE_ONLINE); mpViewBar->HideItem(TBI_TEMPLATE_LOCAL); + // Enable deleting items from the filesystem + mpTemplateBar->ShowItem(TBI_TEMPLATE_DELETE); + mpOnlineView->Hide(); maView->Show(); } @@ -878,6 +881,9 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal) mpViewBar->ShowItem(TBI_TEMPLATE_LOCAL); mpViewBar->HideItem(TBI_TEMPLATE_ONLINE); + // Disable deleting items from remote repositories + mpTemplateBar->HideItem(TBI_TEMPLATE_DELETE); + maView->Hide(); mpOnlineView->Show(); } |