Be more explicit on why a device is winnowed from the list
This commit is contained in:
parent
4cd564655a
commit
633f70e93e
@ -137,12 +137,14 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
|
|||||||
it = erase(devices, it );
|
it = erase(devices, it );
|
||||||
|
|
||||||
}
|
}
|
||||||
else if ( writableOnly && (
|
else if ( writableOnly && hasRootPartition( *it ) )
|
||||||
hasRootPartition( *it ) ||
|
|
||||||
isIso9660( *it ) )
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
cDebug() << " .. Removing root-or-CD" << it;
|
cDebug() << " .. Removing device with root filesystem (/) on it" << it;
|
||||||
|
it = erase(devices, it );
|
||||||
|
}
|
||||||
|
else if ( writableOnly && isIso9660( *it ) )
|
||||||
|
{
|
||||||
|
cDebug() << " .. Removing device with iso9660 filesystem (probably a CD) on it" << it;
|
||||||
it = erase(devices, it );
|
it = erase(devices, it );
|
||||||
}
|
}
|
||||||
else if ( (minimumSize >= 0) && !( (*it)->capacity() > minimumSize ) )
|
else if ( (minimumSize >= 0) && !( (*it)->capacity() > minimumSize ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user