Dont allow copy music to optical drives

Fixes #387
This commit is contained in:
Jonas Kvinge
2020-03-17 20:44:51 +01:00
parent d1f5cbea4a
commit 973229cf4e
5 changed files with 9 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ DeviceStateFilterModel::DeviceStateFilterModel(QObject *parent, DeviceManager::S
}
bool DeviceStateFilterModel::filterAcceptsRow(int row, const QModelIndex&) const {
return sourceModel()->index(row, 0).data(DeviceManager::Role_State).toInt() != state_;
return sourceModel()->index(row, 0).data(DeviceManager::Role_State).toInt() != state_ && sourceModel()->index(row, 0).data(DeviceManager::Role_CopyMusic).toBool();
}
void DeviceStateFilterModel::ProxyRowCountChanged() {