Uuids were invalid dbus paths, modifying them to make dbus happy
This commit is contained in:
parent
e6dfaa5916
commit
d340df1e6e
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue