Set default partition alignment to cylinder for amiga partition table (#116)

Closes #116 - Fails to create partitions on disks with Amiga partition
              tables using default settings
This commit is contained in:
Curtis Gedak 2020-11-13 10:58:14 -07:00 committed by Mike Fleetwood
parent 2df42d90db
commit cca15b4c9f
1 changed files with 5 additions and 1 deletions

View File

@ -116,7 +116,11 @@ Dialog_Base_Partition::Dialog_Base_Partition(const Device& device)
/* TO TRANSLATORS: Option for combo box "Align to:" */
combo_alignment.items().push_back(_("None"));
combo_alignment.set_active(ALIGN_MEBIBYTE); // Default setting
// Default setting for partition table alignment
if (device.disktype == "amiga")
combo_alignment.set_active(ALIGN_CYLINDER);
else
combo_alignment.set_active(ALIGN_MEBIBYTE);
grid_resize.attach(combo_alignment, 1, 3, 1, 1);