+ QList<SUIT_Operation*> operations = study()->operations();
+ int n = operations.size();
+ if( n>=2 )
+ {
+ SUIT_Operation* anOtherOp = operations[n-2];
+ HYDROGUI_ProfileOp* aProfileOp = dynamic_cast<HYDROGUI_ProfileOp*>( anOtherOp );
+ if( aProfileOp )
+ {
+ aProfileOp->deleteSelected();
+ abort();
+ return;
+ }
+ }
+