diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-29 22:35:50 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-29 23:34:32 -0430 |
commit | da501ad185ee35ac85724866035b813fe08d8717 (patch) | |
tree | c544878418e4fa674647ef643fb810ed1efe9d67 /sfx2 | |
parent | 250b0c95475aeb4c92b6917894fe5b22e8d18f7c (diff) |
Show/Hide template delete action depending on the view.
Change-Id: Ia414e9c2ea8d1944b378e373e77607fad531b45f
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(); } |