don't use wait_for_node() if resizing an extended partition (they don't

* src/GParted_Core.cc: don't use wait_for_node() if resizing an
  extended partition (they don't have nodes :P)
This commit is contained in:
Bart Hakvoort 2005-12-12 09:36:42 +00:00
parent 714193cdee
commit c5f508c520
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-12-12 Bart Hakvoort <hakvoort@cvs.gnome.org>
* 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 <hakvoort@cvs.gnome.org> 2005-12-11 Bart Hakvoort <hakvoort@cvs.gnome.org>
* po/POTFILES.in: added include/Utils.h * po/POTFILES.in: added include/Utils.h

View File

@ -783,7 +783,10 @@ bool GParted_Core::Resize_Container_Partition( const Partition & partition_old,
close_device_and_disk( ) ; 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 ) bool GParted_Core::Resize_Normal_Using_Libparted( const Partition & partition_old, const Partition & partition_new )