Update devices menu
This commit is contained in:
@@ -455,6 +455,7 @@ void RemoteDevice::saveProperties(const QString &newCoverFileName, const Device:
|
||||
if (!oldMount.isEmpty() && QDir(oldMount).exists()) {
|
||||
::rmdir(QFile::encodeName(oldMount).constData());
|
||||
}
|
||||
setData(details.name);
|
||||
renamed(oldDetails.name);
|
||||
emit udiChanged(createUdi(oldDetails.name), createUdi(details.name));
|
||||
m_itemData=details.name;
|
||||
|
||||
@@ -641,6 +641,7 @@ void DevicesModel::changeDeviceUdi(const QString &from, const QString &to)
|
||||
int idx=indexes[from];
|
||||
indexes.remove(from);
|
||||
indexes.insert(to, idx);
|
||||
updateItemMenu();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -106,6 +106,10 @@ public:
|
||||
return m_itemData;
|
||||
}
|
||||
|
||||
void setData(const QString &d) {
|
||||
m_itemData=d;
|
||||
}
|
||||
|
||||
MusicLibraryItem::Type type() const {
|
||||
return m_type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user