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:
Volker Lanz 2010-03-01 20:20:46 +00:00
parent 2e82663ca9
commit 6573273554
2 changed files with 1 additions and 3 deletions

2
TODO
View File

@ -20,5 +20,3 @@ Random plans and ideas for 1.1 and beyond:
Bugs:
* Creating a msdos partition table with cylinder alignment off still creates it
will cylinder alignment

View File

@ -659,7 +659,7 @@ bool PartitionTable::isSectorBased() const
if (type() == PartitionTable::msdos)
{
// 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;
// if not all partitions start at a point evenly divisable by sectorAlignment it's