]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
EQt4 porting. Error after Compute of mesh if Create mesh dialog box is opened.
authordmv <dmv@opencascade.com>
Tue, 14 Oct 2008 13:20:17 +0000 (13:20 +0000)
committerdmv <dmv@opencascade.com>
Tue, 14 Oct 2008 13:20:17 +0000 (13:20 +0000)
src/SUIT/SUIT_Study.cxx
src/SUIT/SUIT_Study.h

index fec0b6a4f7079d312fe12443dd6f6033be28e481..ea1262d415352130b580165e6f2929353e2498ea 100755 (executable)
@@ -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<SUIT_Operation*> 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;
index 4128bd7fe46aef188ad52508f809bdaf7e1d7703..603d9d9f56d2bc8207eaa59e91102b3edf4c4f14 100755 (executable)
@@ -23,6 +23,7 @@
 
 #include <QList>
 #include <QObject>
+#include <QListIterator>
 
 class SUIT_DataObject;
 class SUIT_Application;