make sure to update unallocated space after changing the alignment type. also,

update partition widget after changing the alignment type since now the
unallocated space might have changed.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1127793
This commit is contained in:
Volker Lanz 2010-05-17 16:36:18 +00:00
parent 6f248fc6da
commit 2069e191de
3 changed files with 3 additions and 3 deletions

3
TODO
View File

@ -9,9 +9,6 @@ Bugs to fix for 1.1:
if the new one is not legal. i.e., we must constantly update the valid ranges
of the spin boxes if any value changes.
* sector alignment in extended partitions seems to be broken or at least uses
some cylinder alignment logic (offset of 63)
===============================================================================
For releases after 1.1:

View File

@ -462,6 +462,8 @@ void PartitionTable::setType(const Device& d, TableType t)
setLastUsableSector(defaultLastUsable(d, t));
m_Type = t;
updateUnallocated(d);
}
static bool isPartitionLessThan(const Partition* p1, const Partition* p2)

View File

@ -992,6 +992,7 @@ void MainWindow::onPropertiesDevice(const QString&)
d.partitionTable()->setType(d, PartitionTable::msdos);
on_m_OperationStack_devicesChanged();
pmWidget().updatePartitions();
}
delete dlg;