From 2069e191de3491eccf39b6898b6cfbf8631c3c13 Mon Sep 17 00:00:00 2001 From: Volker Lanz Date: Mon, 17 May 2010 16:36:18 +0000 Subject: [PATCH] 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 --- TODO | 3 --- src/core/partitiontable.cpp | 2 ++ src/gui/mainwindow.cpp | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) 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;