diff --git a/ChangeLog b/ChangeLog index 86ce28ac..51c7b399 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-12 Bart Hakvoort + + * src/GParted_Core.cc: don't use wait_for_node() if resizing an + extended partition (they don't have nodes :P) + 2005-12-11 Bart Hakvoort * po/POTFILES.in: added include/Utils.h diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index 52a332af..0f65390f 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -782,8 +782,11 @@ bool GParted_Core::Resize_Container_Partition( const Partition & partition_old, close_device_and_disk( ) ; } - - return wait_for_node( partition_new .partition ) && return_value ; + + if ( partition_old .type == GParted::TYPE_EXTENDED ) + return return_value ; + else + return wait_for_node( partition_new .partition ) && return_value ; } bool GParted_Core::Resize_Normal_Using_Libparted( const Partition & partition_old, const Partition & partition_new )