show correct statusmessage when performing the readonly test.

* src/GParted_Core.cc: show correct statusmessage when performing the
  readonly test.
This commit is contained in:
Bart Hakvoort 2006-09-11 09:17:31 +00:00
parent 55851c6c46
commit 403143fc9b
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-09-11 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc: show correct statusmessage when performing the
readonly test.
2006-09-11 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc: reverted back to parted probing after i heard

View File

@ -1581,7 +1581,8 @@ bool GParted_Core::copy_filesystem( const Glib::ustring & src_device,
Sector & total_done )
{
operationdetail .add_child( OperationDetail( _("using internal algorithm"), STATUS_NONE ) ) ;
operationdetail .add_child( OperationDetail( String::ucompose( _("copy %1 sectors"), length ), STATUS_NONE ) ) ;
operationdetail .add_child( OperationDetail(
String::ucompose( readonly ? _("read %1 sectors") : _("copy %1 sectors"), length ), STATUS_NONE ) ) ;
operationdetail .add_child( OperationDetail( _("finding optimal blocksize"), STATUS_NONE ) ) ;
@ -1653,7 +1654,8 @@ bool GParted_Core::copy_filesystem( const Glib::ustring & src_device,
readonly,
total_done ) ;
operationdetail .add_child( OperationDetail( String::ucompose( _("%1 sectors copied"), total_done ), STATUS_NONE ) ) ;
operationdetail .add_child( OperationDetail(
String::ucompose( readonly ? _("%1 sectors read") : _("%1 sectors copied"), total_done ), STATUS_NONE ) ) ;
return succes ;
}