From def06e3da3a3303cecdbd7229b4effc7dd69df86 Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 23 Nov 2005 09:41:39 +0000 Subject: [PATCH] try-catch added into VisuGUI_BuildProgressDlg::onTimer() --- src/VISUGUI/VisuGUI_BuildProgressDlg.cxx | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) 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 ) -- 2.39.2