diff --git a/TODO b/TODO index 84c1919..36c9f6f 100644 --- a/TODO +++ b/TODO @@ -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: diff --git a/src/core/partitiontable.cpp b/src/core/partitiontable.cpp index c0f52bf..c280572 100644 --- a/src/core/partitiontable.cpp +++ b/src/core/partitiontable.cpp @@ -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) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 0f2e85f..52c4f48 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -992,6 +992,7 @@ void MainWindow::onPropertiesDevice(const QString&) d.partitionTable()->setType(d, PartitionTable::msdos); on_m_OperationStack_devicesChanged(); + pmWidget().updatePartitions(); } delete dlg;