From: ouv Date: Wed, 23 Nov 2005 09:41:39 +0000 (+0000) Subject: try-catch added into VisuGUI_BuildProgressDlg::onTimer() X-Git-Tag: BR-D5-38-2003_D2005-24-11~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=def06e3da3a3303cecdbd7229b4effc7dd69df86;p=modules%2Fvisu.git try-catch added into VisuGUI_BuildProgressDlg::onTimer() --- diff --git a/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx b/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx index cf44bc8e..d2a10a21 100644 --- a/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx +++ b/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx @@ -106,16 +106,21 @@ void VisuGUI_BuildProgressDlg::start() void VisuGUI_BuildProgressDlg::onTimer() { - bool isFieldsDone = myResult->IsFieldsDone(); - bool isGroupsDone = myResult->IsGroupsDone(); - bool isMinMaxDone = myResult->IsMinMaxDone(); + try { + bool isFieldsDone = myResult->IsFieldsDone(); + bool isGroupsDone = myResult->IsGroupsDone(); + bool isMinMaxDone = myResult->IsMinMaxDone(); - updateButton( myBuildFieldsButton, isFieldsDone ); - updateButton( myBuildGroupsButton, isGroupsDone ); - updateButton( myBuildMinMaxButton, isMinMaxDone ); + updateButton( myBuildFieldsButton, isFieldsDone ); + updateButton( myBuildGroupsButton, isGroupsDone ); + updateButton( myBuildMinMaxButton, isMinMaxDone ); - if( isFieldsDone && isGroupsDone && isMinMaxDone ) - done( 0 ); + if( isFieldsDone && isGroupsDone && isMinMaxDone ) + done( 0 ); + } + catch( ... ) { + done( 1 ); + } } void VisuGUI_BuildProgressDlg::updateButton( QPushButton* theButton, bool theIsDone )