skip resize/move of partition/filesystem if there are no changes.
* src/GParted_Core.cc: skip resize/move of partition/filesystem if there are no changes.
This commit is contained in:
parent
833570510b
commit
c5853ab734
|
@ -1,3 +1,8 @@
|
|||
2006-09-08 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||
|
||||
* src/GParted_Core.cc: skip resize/move of partition/filesystem if
|
||||
there are no changes.
|
||||
|
||||
2006-09-08 Pema Geyleg <pgeyleg@gmail.com>
|
||||
|
||||
* configure.in: Added dz to ALL_LINGUAS
|
||||
|
|
|
@ -1301,11 +1301,16 @@ bool GParted_Core::resize_move_partition( const Partition & partition_old,
|
|||
|
||||
|
||||
if ( action == NONE )
|
||||
{
|
||||
operationdetail .get_last_child() .add_child(
|
||||
OperationDetail( _("new and old partition have the same size and position. continuing anyway"),
|
||||
OperationDetail( _("new and old partition have the same size and position. skipping this operation"),
|
||||
STATUS_NONE,
|
||||
FONT_ITALIC ) ) ;
|
||||
|
||||
operationdetail .get_last_child() .set_status( STATUS_SUCCES ) ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
operationdetail .get_last_child() .add_child(
|
||||
OperationDetail(
|
||||
String::ucompose( _("old start: %1"), partition_old .sector_start ) + "\n" +
|
||||
|
@ -1402,9 +1407,12 @@ bool GParted_Core::resize_filesystem( const Partition & partition_old,
|
|||
operationdetail .add_child( OperationDetail( _("resize filesystem") ) ) ;
|
||||
operationdetail .get_last_child() .add_child(
|
||||
OperationDetail(
|
||||
_("new and old filesystem have the same size. continuing anyway"),
|
||||
_("new and old filesystem have the same size. skipping this operation"),
|
||||
STATUS_NONE,
|
||||
FONT_ITALIC ) ) ;//FIXME don't continue, same for all the other places where we currently continue...
|
||||
FONT_ITALIC ) ) ;
|
||||
|
||||
operationdetail .get_last_child() .set_status( STATUS_SUCCES ) ;
|
||||
return true ;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue