[gparted] Set default partition alignment to cylinder for amiga partition table (#116)
- From: Mike Fleetwood <mfleetwo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Set default partition alignment to cylinder for amiga partition table (#116)
- Date: Tue, 24 Nov 2020 15:03:06 +0000 (UTC)
commit cca15b4c9f26c23b0af817c34a67bfade47b5c15
Author: Curtis Gedak <gedakc gmail com>
Date: Fri Nov 13 10:58:14 2020 -0700
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
src/Dialog_Base_Partition.cc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/Dialog_Base_Partition.cc b/src/Dialog_Base_Partition.cc
index 19f1915e..25cc4d7c 100644
--- a/src/Dialog_Base_Partition.cc
+++ b/src/Dialog_Base_Partition.cc
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]