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…
Reference in New Issue