mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-03 05:21:57 +01:00
giolister: Don't include invalid mountpoint url
If the gvfs mountpoint property for a volume is empty, we add an empty URL to the devices URL list. This causes errors in duplicate entry detection.
This commit is contained in:
parent
df262c5c7e
commit
01f0727649
@ -220,7 +220,11 @@ QList<QUrl> GioLister::MakeDeviceUrls(const QString& id) {
|
||||
}
|
||||
}
|
||||
|
||||
ret << MakeUrlFromLocalPath(mount_point);
|
||||
QUrl mount_point_url = MakeUrlFromLocalPath(mount_point);
|
||||
if (mount_point_url.isValid()) {
|
||||
ret << mount_point_url;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user