Don't hardcode /dev/sd* as device path.

This commit is contained in:
Teo Mrnjavac 2017-02-02 16:58:53 +01:00
parent b84c5db309
commit 06b1d4abd2

View File

@ -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