mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 20:05:37 -04:00
Remember to update total.
This commit is contained in:
parent
7bf918bfee
commit
7f6199ad37
1 changed files with 5 additions and 4 deletions
|
@ -527,7 +527,7 @@ PartitionSplitterWidget::computeItemsVector( const QList< PartitionSplitterItem
|
|||
qreal total = 0;
|
||||
for ( int row = 0; row < originalItems.count(); ++row )
|
||||
{
|
||||
if ( !originalItems[ row ].children.isEmpty() )
|
||||
if ( originalItems[ row ].children.isEmpty() )
|
||||
{
|
||||
items += originalItems[ row ];
|
||||
total += originalItems[ row ].size;
|
||||
|
@ -535,10 +535,11 @@ PartitionSplitterWidget::computeItemsVector( const QList< PartitionSplitterItem
|
|||
else
|
||||
{
|
||||
PartitionSplitterItem thisItem = originalItems[ row ];
|
||||
QPair< QList< PartitionSplitterItem >, qreal > r = computeItemsVector( thisItem.children );
|
||||
thisItem.children = r.first;
|
||||
thisItem.size = r.second;
|
||||
QPair< QList< PartitionSplitterItem >, qreal > pair = computeItemsVector( thisItem.children );
|
||||
thisItem.children = pair.first;
|
||||
thisItem.size = pair.second;
|
||||
items += thisItem;
|
||||
total += thisItem.size;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue