summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-07-31 12:31:24 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-07-31 13:39:19 -0430
commit953a08b2dea5e07efb487b4d9bfccce5960193fc (patch)
treee78fa18b9009d3c141923e9bd4cabacce6d534db /sfx2/source
parentbff778a8d8bf9b634408db3dfdf0270d58ebb1c4 (diff)
After closing a remote repository overlay display local view.
Change-Id: Ic7a2274b36719eeb979218b3dd54f19488f114dc
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/doc/templatedlg.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 4947aa5c109f..765f66436d62 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -324,7 +324,11 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg, CloseOverlayHdl)
mpTemplateBar->Hide();
mpViewBar->Show();
- mpCurView->showOverlay(false);
+ if (mpCurView == maView)
+ mpCurView->showOverlay(false);
+ else
+ switchMainView(true);
+
return 0;
}