From: dmv Date: Tue, 14 Oct 2008 13:20:17 +0000 (+0000) Subject: EQt4 porting. Error after Compute of mesh if Create mesh dialog box is opened. X-Git-Tag: V5_1_0a3~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a62eb02e8ae073d731cbe5b7ba38331c0fd432b9;p=modules%2Fgui.git EQt4 porting. Error after Compute of mesh if Create mesh dialog box is opened. --- diff --git a/src/SUIT/SUIT_Study.cxx b/src/SUIT/SUIT_Study.cxx index fec0b6a4f..ea1262d41 100755 --- a/src/SUIT/SUIT_Study.cxx +++ b/src/SUIT/SUIT_Study.cxx @@ -425,9 +425,12 @@ void SUIT_Study::stop( SUIT_Operation* theOp ) // get last operation which can be resumed SUIT_Operation* aResultOp = 0; - for ( Operations::iterator it = myOperations.end(); it != myOperations.begin(); --it ) + + QListIterator it (myOperations); + it.toBack(); + while( it.hasPrevious() ) { - SUIT_Operation* anOp = *it; + SUIT_Operation* anOp = it.previous(); if ( anOp && anOp != theOp && blockingOperation( anOp ) == 0 ) { aResultOp = anOp; diff --git a/src/SUIT/SUIT_Study.h b/src/SUIT/SUIT_Study.h index 4128bd7fe..603d9d9f5 100755 --- a/src/SUIT/SUIT_Study.h +++ b/src/SUIT/SUIT_Study.h @@ -23,6 +23,7 @@ #include #include +#include class SUIT_DataObject; class SUIT_Application;