Commit a68cd3a9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove debug

parent 50847431
......@@ -134,7 +134,6 @@ bool PimUniqueApplication::start(const QStringList &arguments)
// (which could be kontact or the standalone application),
// otherwise the current app being started will register to DBus.
qDebug() << "bool PimUniqueApplication::start(const QStringList &arguments) " << arguments;
const QString serviceName = QLatin1String("org.kde.") + appName;
if (QDBusConnection::sessionBus().interface()->isServiceRegistered(serviceName)) {
QByteArray new_asn_id;
......
......@@ -165,14 +165,12 @@ KParts::ReadOnlyPart *Plugin::part()
QString Plugin::registerClient()
{
qDebug() << " QString Plugin::registerClient()";
if (d->serviceName.isEmpty()) {
d->serviceName = QLatin1String("org.kde.") + QLatin1String(objectName().toLatin1());
#ifdef Q_OS_WIN
const QString pid = QString::number(QCoreApplication::applicationPid());
d->serviceName.append(QLatin1String(".unique-") + pid);
#endif
qDebug() << " QString Plugin::registerClient() " << d->serviceName;
QDBusConnection::sessionBus().registerService(d->serviceName);
}
return d->serviceName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment