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 )