summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-05-30 23:28:22 +0300
committerTor Lillqvist <tml@collabora.com>2014-05-30 23:28:35 +0300
commit2949cb7b2380291be16831f5239368e90bdc6380 (patch)
tree3785a934fb6dbac3d34075118099ff21bed5c2f2 /desktop
parent6cc359f8d739a92c2695a5248dfbb49f43d1ca6e (diff)
No StarBASIC if DISABLE_SCRIPTING
Change-Id: Ie72c883c4d55ad247f582dcd89420f13814c28a3
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index b6c4e8c1cdbb..065fb4073801 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1767,7 +1767,9 @@ int Desktop::doShutdown()
// with the solar mutex unlocked, to avoid deadlock:
sal_uLong nAcquireCount = Application::ReleaseSolarMutex();
DeregisterServices();
+#ifndef DISABLE_SCRIPTING
StarBASIC::DetachAllDocBasicItems();
+#endif
Application::AcquireSolarMutex(nAcquireCount);
// be sure that path/language options gets destroyed before
// UCB is deinitialized