don't use children().size() but numPrimaries() to find out if a partition table
is empty. svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097659
This commit is contained in:
parent
2e82663ca9
commit
6573273554
2
TODO
2
TODO
|
@ -20,5 +20,3 @@ Random plans and ideas for 1.1 and beyond:
|
||||||
|
|
||||||
Bugs:
|
Bugs:
|
||||||
|
|
||||||
* Creating a msdos partition table with cylinder alignment off still creates it
|
|
||||||
will cylinder alignment
|
|
||||||
|
|
|
@ -659,7 +659,7 @@ bool PartitionTable::isSectorBased() const
|
||||||
if (type() == PartitionTable::msdos)
|
if (type() == PartitionTable::msdos)
|
||||||
{
|
{
|
||||||
// user has turned cylinder based alignment off and partition table is empty
|
// user has turned cylinder based alignment off and partition table is empty
|
||||||
if (Config::useCylinderAlignment() == false && children().size() == 0)
|
if (Config::useCylinderAlignment() == false && numPrimaries() == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// if not all partitions start at a point evenly divisable by sectorAlignment it's
|
// if not all partitions start at a point evenly divisable by sectorAlignment it's
|
||||||
|
|
Loading…
Reference in New Issue