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:
parent
39132c4dcd
commit
9c4282c61c
@ -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_)
|
||||
|
Loading…
x
Reference in New Issue
Block a user