Uuids were invalid dbus paths, modifying them to make dbus happy

This commit is contained in:
Albert Vaca 2013-08-07 11:45:24 +02:00
parent e6dfaa5916
commit d340df1e6e

View file

@ -51,7 +51,10 @@ Daemon::Daemon(QObject *parent, const QList<QVariant>&)
KSharedConfigPtr config = KSharedConfig::openConfig("kdeconnectrc");
if (!config->group("myself").hasKey("id")) {
config->group("myself").writeEntry("id",QUuid::createUuid().toString());
QString uid = QUuid::createUuid().toString();
uid = uid.mid(1,uid.length()-2).replace("-","_");
config->group("myself").writeEntry("id",uid);
qDebug() << uid;
}
//Debugging