[gparted] Allow child OperationDetails to emit error capture callback too (#790842)



commit 0a78c3985678549b4781b7b19fbb0a51475e2086
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Sat Nov 25 14:28:31 2017 +0000

    Allow child OperationDetails to emit error capture callback too (#790842)
    
    Just copies the callback into each newly added child detail.  As there
    are no more uses of set_success_and_capture_errors() yet, libparted
    errors are still only captured once at the top-level of each operation.
    
    Bug 790842 - Report libparted messages into operation details at the
                 point at which they occur

 src/OperationDetail.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/OperationDetail.cc b/src/OperationDetail.cc
index 8e11f45..1a06f16 100644
--- a/src/OperationDetail.cc
+++ b/src/OperationDetail.cc
@@ -197,6 +197,7 @@ void OperationDetail::add_child_implement( const OperationDetail & operationdeta
                                sigc::mem_fun( sub_details.back(), &OperationDetail::cancel ) );
        if ( cancelflag )
                sub_details.back()->cancel( cancelflag == 2 );
+       sub_details.back()->signal_capture_errors.connect( this->signal_capture_errors );
        on_update( *sub_details.back() );
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]