Update device name on reconnection
Since the remote device can now change its name, re-read the device name from the identityPackage REVIEW: 113203
This commit is contained in:
parent
f68d336e88
commit
63488781b9
1 changed files with 3 additions and 0 deletions
|
@ -200,6 +200,9 @@ void Device::addLink(const NetworkPackage& identityPackage, DeviceLink* link)
|
|||
|
||||
m_deviceLinks.append(link);
|
||||
|
||||
//re-read the device name from the identityPackage because it could have changed
|
||||
m_deviceName = identityPackage.get<QString>("deviceName");
|
||||
|
||||
//TODO: Do not read the key every time
|
||||
KSharedConfigPtr config = KSharedConfig::openConfig("kdeconnectrc");
|
||||
const QString& key = config->group("myself").readEntry<QString>("privateKey",QString());
|
||||
|
|
Loading…
Reference in a new issue