cosmetics...
This commit is contained in:
parent
577d0f8112
commit
95b847d3f9
|
@ -115,36 +115,36 @@ std::vector<Partition> Operation::Apply_Operation_To_Visual( std::vector<Partiti
|
||||||
|
|
||||||
void Operation::Apply_To_Disk( PedTimer * timer )
|
void Operation::Apply_To_Disk( PedTimer * timer )
|
||||||
{
|
{
|
||||||
Glib::ustring buf;
|
Glib::ustring buf;
|
||||||
bool result; //for some weird reason it won't work otherwise .. ( this one really beats me :-S )
|
bool result; //for some weird reason it won't work otherwise .. ( this one really beats me :-S )
|
||||||
|
|
||||||
switch ( operationtype )
|
switch ( operationtype )
|
||||||
{
|
{
|
||||||
case DELETE : result = device ->Delete_Partition( partition_original ) ;
|
case DELETE : result = device ->Delete_Partition( partition_original ) ;
|
||||||
if ( ! result )
|
if ( ! result )
|
||||||
Show_Error( String::ucompose( _("Error while deleting %1"), partition_original.partition ) ) ;
|
Show_Error( String::ucompose( _("Error while deleting %1"), partition_original.partition ) ) ;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case CREATE : result = device ->Create_Partition_With_Filesystem( partition_new, timer ) ;
|
case CREATE : result = device ->Create_Partition_With_Filesystem( partition_new, timer ) ;
|
||||||
if ( ! result )
|
if ( ! result )
|
||||||
Show_Error( String::ucompose( _("Error while creating %1"), partition_new.partition ) );
|
Show_Error( String::ucompose( _("Error while creating %1"), partition_new.partition ) );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case RESIZE_MOVE : result = device ->Move_Resize_Partition( partition_original, partition_new, timer ) ;
|
case RESIZE_MOVE: result = device ->Move_Resize_Partition( partition_original, partition_new, timer ) ;
|
||||||
if ( ! result )
|
if ( ! result )
|
||||||
Show_Error( String::ucompose( _("Error while resizing/moving %1"), partition_new.partition ) ) ;
|
Show_Error( String::ucompose( _("Error while resizing/moving %1"), partition_new.partition ) ) ;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case CONVERT : result = device ->Set_Partition_Filesystem( partition_new, timer ) ;
|
case CONVERT : result = device ->Set_Partition_Filesystem( partition_new, timer ) ;
|
||||||
if ( ! result )
|
if ( ! result )
|
||||||
Show_Error( String::ucompose( _("Error while converting filesystem of %1"), partition_new.partition ) ) ;
|
Show_Error( String::ucompose( _("Error while converting filesystem of %1"), partition_new.partition ) ) ;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case COPY : result = device ->Copy_Partition( source_device, partition_new, timer ) ;
|
case COPY : result = device ->Copy_Partition( source_device, partition_new, timer ) ;
|
||||||
if ( ! result )
|
if ( ! result )
|
||||||
Show_Error( String::ucompose( _("Error while copying %1"), partition_new .partition ) ) ;
|
Show_Error( String::ucompose( _("Error while copying %1"), partition_new .partition ) ) ;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue