summaryrefslogtreecommitdiff
path: root/desktop/source/deployment
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-04-09 20:28:18 +0300
committerTor Lillqvist <tml@collabora.com>2015-04-09 23:27:45 +0300
commit72e7bf859df4941e7c86b57d12a4a2254b202ac1 (patch)
treea583187d3fe6979a0aaa2ff83fd564bbb76598f2 /desktop/source/deployment
parent2dede8bfbab5d353f91acc5f5fa7c21b1b1a4fea (diff)
Use comphelper::LibreOfficeKit::isActive() instead of LOK_TEST env var
Change-Id: Iaa0c751f101df6db25e9fca9123b81ac63033159
Diffstat (limited to 'desktop/source/deployment')
-rw-r--r--desktop/source/deployment/misc/dp_misc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx
index 60a06582120f..c5b4eec6812c 100644
--- a/desktop/source/deployment/misc/dp_misc.cxx
+++ b/desktop/source/deployment/misc/dp_misc.cxx
@@ -42,6 +42,7 @@
#include <com/sun/star/task/OfficeRestartManager.hpp>
#include <boost/scoped_array.hpp>
#include <boost/shared_ptr.hpp>
+#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
#include <salhelper/linkhelper.hxx>
@@ -558,8 +559,7 @@ void syncRepositories(
}
}
#if !HAVE_FEATURE_MACOSX_SANDBOX
- // getenv is a hack to detect if we're running in a LOK unit test
- if (bModified && !getenv("LOK_TEST"))
+ if (bModified && !comphelper::LibreOfficeKit::isActive())
{
Reference<task::XRestartManager> restarter(task::OfficeRestartManager::get(comphelper::getProcessComponentContext()));
if (restarter.is())