1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-28 16:20:26 +01:00

Make sure URL is valid in giolister

This commit is contained in:
Jonas Kvinge 2020-12-06 18:45:17 +01:00
parent 8646829853
commit 9af409d6d6

View File

@ -252,7 +252,8 @@ QList<QUrl> GioLister::MakeDeviceUrls(const QString &id) {
}
if (!mount_point.isEmpty()) {
ret << MakeUrlFromLocalPath(mount_point);
QUrl url = MakeUrlFromLocalPath(mount_point);
if (url.isValid()) ret << url;
}
return ret;