Skip to content
Snippets Groups Projects
Commit 85da2128 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

newdevicemodel: emit deviceUpdated when the current device name is changed

Change-Id: Iba7814b2f849de7ac2424312c9460286e19f5fc5
parent 31e1d9de
No related branches found
No related tags found
No related merge requests found
...@@ -109,6 +109,9 @@ NewDeviceModel::setCurrentDeviceName(const QString& newName) ...@@ -109,6 +109,9 @@ NewDeviceModel::setCurrentDeviceName(const QString& newName)
for (auto& device : pimpl_->devices_) { for (auto& device : pimpl_->devices_) {
if (device.id == config.deviceId) { if (device.id == config.deviceId) {
device.name = newName; device.name = newName;
emit deviceUpdated(device.id);
return;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment