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

Fix a bug where forgotten devices couldn't be unmounted

This commit is contained in:
David Sansome 2010-08-14 12:42:16 +00:00
parent 39132c4dcd
commit 9c4282c61c

View File

@ -628,7 +628,7 @@ void DeviceManager::UnmountAsync(int row) {
void DeviceManager::Unmount(int row) {
DeviceInfo& info = devices_[row];
if (info.database_id_ == -1)
if (info.database_id_ != -1 && !info.device_)
return;
if (info.device_)