[partition] Don't set empty labels
This commit is contained in:
parent
0be88f1453
commit
03291fb726
@ -553,6 +553,11 @@ PartitionCoreModule::formatPartition( Device* device, Partition* partition )
|
||||
void
|
||||
PartitionCoreModule::setFilesystemLabel( Device* device, Partition* partition, const QString& newLabel )
|
||||
{
|
||||
if ( newLabel.isEmpty() )
|
||||
{
|
||||
// Don't bother
|
||||
return;
|
||||
}
|
||||
auto deviceInfo = infoForDevice( device );
|
||||
Q_ASSERT( deviceInfo );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user