1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-02-02 04:16:47 +01:00

Fix crash on device removal.

This commit is contained in:
John Maguire 2010-07-24 19:41:30 +00:00
parent a0fc3e3633
commit de2eb79d3c

View File

@ -342,9 +342,9 @@ void DeviceManager::PhysicalDeviceRemoved(const QString &id) {
if (info.database_id_ != -1) {
// Keep the structure around, but just "disconnect" it
for (int backend_index = 0 ; backend_index < info.backends_.count() ; ++i) {
if (info.backends_[i].unique_id_ == id) {
info.backends_[i].lister_ = NULL;
for (int backend_index = 0 ; backend_index < info.backends_.count() ; ++backend_index) {
if (info.backends_[backend_index].unique_id_ == id) {
info.backends_[backend_index].lister_ = NULL;
break;
}
}