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:
Bart Hakvoort 2006-09-08 07:57:23 +00:00
parent 833570510b
commit c5853ab734
2 changed files with 16 additions and 3 deletions

View File

@ -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

View File

@ -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 ;
}
}