summaryrefslogtreecommitdiff
path: root/framework/source/services
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/services')
-rw-r--r--framework/source/services/sessionlistener.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/source/services/sessionlistener.cxx b/framework/source/services/sessionlistener.cxx
index 51f7a398ee86..d9881c0f0ee1 100644
--- a/framework/source/services/sessionlistener.cxx
+++ b/framework/source/services/sessionlistener.cxx
@@ -93,7 +93,7 @@ DEFINE_XTYPEPROVIDER_5(
DEFINE_XSERVICEINFO_ONEINSTANCESERVICE(
SessionListener,
cppu::OWeakObject,
- SERVICENAME_SESSIONLISTENER,
+ "com.sun.star.frame.SessionListener",
IMPLEMENTATIONNAME_SESSIONLISTENER)
DEFINE_INIT_SERVICE(SessionListener,
@@ -195,7 +195,9 @@ void SAL_CALL SessionListener::initialize(const Sequence< Any >& args)
SAL_INFO("fwk.session", "SessionListener::initialize");
OUString aSMgr("com.sun.star.frame.SessionManagerClient");
- if (args.getLength() > 0)
+ if ( (args.getLength() == 1) && (args[0] >>= m_bAllowUserInteractionOnQuit) )
+ ;// do nothing
+ else if (args.getLength() > 0)
{
NamedValue v;
for (int i = 0; i < args.getLength(); i++)