Fix default new partition text.
This commit is contained in:
parent
9c90a2a500
commit
04ab71bad9
@ -199,8 +199,10 @@ PartitionLabelsView::buildTexts( const QModelIndex& index ) const
|
||||
firstLine = tr( "EFI system" );
|
||||
else if ( index.data( PartitionModel::FileSystemTypeRole ).toInt() == FileSystem::LinuxSwap )
|
||||
firstLine = tr( "Swap" );
|
||||
else
|
||||
else if ( !mountPoint.isEmpty() )
|
||||
firstLine = tr( "New partition for %1" ).arg( mountPoint );
|
||||
else
|
||||
firstLine = tr( "New partition" );
|
||||
}
|
||||
else if ( index.data( PartitionModel::OsproberNameRole ).toString().isEmpty() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user