Make it possible to "resize" (aka delete + create for now) existing partitions
updatePartitionToCreate: avoid crash

Create the new partition before deleting the old one: otherwise the
m_partition member of dlg is dangling at the time we call createPartition()
Introduce PartitionSizeWidget to reduce duplication between dialogs