{
qDebug() << "Engine::ErrorHandler, aCode: " << aCode;
// inform UI about the problem
- if( aCode >= 100 && aCode <= 150 )
+ if( aCode >= 100 && aCode <= 150 ) { //communication errors
+ {
+ //we don't want these to close operation changing
qDebug() << "CommunicationManager signaled an error:" << aCode;
+ if( !iCommunicationFailed )
+ {
+ // Only inform window manager when first error appears
+ iCommunicationFailed = true;
+ //iWindowManager->connectionLost();
+ }
+ }
- iWindowManager->closeProgressBar();
+ iWindowManager->closeProgressBar();
+ }
iWindowManager->error( ErrorMapper::codeToString( aCode, aAddInfo ) );
}