• Mike Fleetwood's avatar
    Snap partition boundaries before dialogs update FS usage (#48) · 7c94b7d9
    Mike Fleetwood authored
    Move snap_to_*() method calls from the point when all operations are
    added to the list, to earlier when Resize/Move, Paste (into new) and
    Create New dialogs are composing the new partition objects.  In
    particular for the Resize/Move operation, to just before updating the
    file system usage.
    
    This change finally resolves this bug.
    
    Because of the dialog call chains into Dialog_Base_Partition,
    snap_to_alignment() must be added into:
    * Dialog_Base_Partition::prepare_new_partition() for the Resize/Move and
      Paste (into new) dialogs; and
    * Dialog_Partition_New::Get_New_Partition() for the Create New dialog.
    
    Closes #48 - Error when moving locked LUKS-encrypted partition
    7c94b7d9
Name
Last commit
Last update
data Loading commit data...
doc Loading commit data...
help Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
po Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING-DOCS Loading commit data...
ChangeLog Loading commit data...
HACKING Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
gparted.appdata.xml.in Loading commit data...
gparted.desktop.in.in Loading commit data...
gparted.doap Loading commit data...
gparted.in Loading commit data...
logo.png Loading commit data...
org.gnome.gparted.policy.in.in Loading commit data...
testbuild.sh Loading commit data...