Don't hardcode /dev/sd* as device path.
This commit is contained in:
parent
b84c5db309
commit
06b1d4abd2
@ -207,7 +207,7 @@ PartitionLabelsView::buildTexts( const QModelIndex& index ) const
|
||||
else if ( index.data( PartitionModel::OsproberNameRole ).toString().isEmpty() )
|
||||
{
|
||||
firstLine = index.data().toString();
|
||||
if ( firstLine.startsWith( "/dev/sd" ) )
|
||||
if ( firstLine.startsWith( "/dev/" ) )
|
||||
firstLine.remove( 0, 5 ); // "/dev/"
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user