diff options
Diffstat (limited to 'examples/sfwecho/sfwecho_service/main.cpp')
-rw-r--r-- | examples/sfwecho/sfwecho_service/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/sfwecho/sfwecho_service/main.cpp b/examples/sfwecho/sfwecho_service/main.cpp index bbb43d4f37..5a2f12d631 100644 --- a/examples/sfwecho/sfwecho_service/main.cpp +++ b/examples/sfwecho/sfwecho_service/main.cpp @@ -74,12 +74,15 @@ void unregisterExampleService() void registerExampleService() { + // Automatic registration feature is used on Symbian, for details see .pro file +#ifndef Q_OS_SYMBIAN unregisterExampleService(); QServiceManager m; const QString path = QCoreApplication::applicationDirPath() + "/xmldata/sfwechoservice.xml"; if (!m.addService(path)) { qWarning() << "Cannot register EchoService" << path; } +#endif } Q_DECLARE_METATYPE(QMetaType::Type); |