summaryrefslogtreecommitdiff
path: root/framework/source/services/sessionlistener.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-08 08:18:58 +0200
committerNoel Grandin <noel@peralex.com>2013-01-15 09:56:01 +0200
commit54f141882400731e75d25ac137fa516d9093f4fc (patch)
treec79e464168f2faa59a561bbb670d8525df21763b /framework/source/services/sessionlistener.cxx
parent92f14ced5e6f613772792d863a8c2cfeddfdae04 (diff)
fdo#46808, Adapt frame::SessionListener UNO service to new style
The service already existed, it just did not have an IDL file. Change-Id: I88b914995eaa52708c1d51271455478fedb65a63
Diffstat (limited to 'framework/source/services/sessionlistener.cxx')
-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++)