summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2013-03-30 13:28:44 -0430
committerRafael Dominguez <venccsralph@gmail.com>2013-04-05 21:23:09 -0430
commit4e4119b2d338b607adff338be01d33d62f3e45f4 (patch)
treebb9ff44d0a59b62a26180ff20259f23bb54445c8 /sfx2
parentuse filelist install method for udkapi and offapi (diff)
downloadcore-4e4119b2d338b607adff338be01d33d62f3e45f4.tar.gz
core-4e4119b2d338b607adff338be01d33d62f3e45f4.zip
Dont show import action while in save mode.
Change-Id: If6cca322203bf019a732ce6b0b5a9a20bd932557
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/templatedlg.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 7ff9159a52af..b53aee3831de 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -721,7 +721,9 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg, OpenRegionHdl)
maSelTemplates.clear();
mpViewBar->ShowItem(TBI_TEMPLATE_FOLDER_NEW,mpCurView->isNestedRegionAllowed());
- mpViewBar->ShowItem(TBI_TEMPLATE_IMPORT,mpCurView->isImportAllowed());
+
+ if (!mbIsSaveMode)
+ mpViewBar->ShowItem(TBI_TEMPLATE_IMPORT,mpCurView->isImportAllowed());
mpTemplateBar->Hide();
mpViewBar->Show();