MantisBT - ParaView
View Issue Details
0012398ParaView(No Category)public2011-07-25 09:042011-07-29 16:16
Sebastien Jourdain 
Sebastien Jourdain 
normalminorhave not tried
closedfixed 
 
3.12 
Collaboration
12398-VisTrails-fix
incorrect functionality
0012398: VisTrails plugin recording too much informations before state loading action
Our plugin is nearly complete, however there is an issue when a user loads a ParaView save file. The problem is that a few UndoSets get pushed onto the UndoStack before the aboutToLoadState() signal is emitted, so we end up recording actions we don't want. I can think of two simple solutions for this, but both require very minor changes to the ParaView source.

Solution 1: In the loadState() method at pqApplicationCore.cxx::519, move the emit this->aboutToLoadState(rootElement) call up 5 lines before the pqViews are destroyed. This way we can detect that the state is loading earlier and ignore the changes to the UndoStack.

Solution 2: Add BEGIN_UNDO_EXCLUDE() and END_UNDO_EXCLUDE() calls around the code that destroys the pqViews near pqApplicationCore.cxx::511 ~ 518. This shouldn't cause any problems in ParaView because the UndoStack is cleared when the ProxyManager loads the state anyway.

>>> We have chosen solution 2
No tags attached.
Issue History
2011-07-25 09:04Sebastien JourdainNew Issue
2011-07-25 09:04Sebastien JourdainAssigned To => Sebastiennn Jourdain
2011-07-25 09:11Sebastien JourdainStatusbacklog => todo
2011-07-25 09:12Sebastien JourdainStatustodo => active development
2011-07-25 09:20Sebastien JourdainTopic Name => 12398-VisTrails-fix
2011-07-25 09:20Sebastien JourdainNote Added: 0027072
2011-07-25 09:20Sebastien JourdainStatusactive development => gatekeeper review
2011-07-25 09:20Sebastien JourdainResolutionopen => fixed
2011-07-29 10:40Utkarsh AyachitNote Added: 0027124
2011-07-29 10:42Utkarsh AyachitFixed in Version => 3.12
2011-07-29 12:33Dave DeMarleNote Added: 0027136
2011-07-29 15:03Utkarsh AyachitStatusgatekeeper review => customer review
2011-07-29 15:03Utkarsh AyachitNote Added: 0027155
2011-07-29 16:16Utkarsh AyachitStatuscustomer review => closed

Notes
(0027072)
Sebastien Jourdain   
2011-07-25 09:20   
Solution has been push to stage and merged to next
(0027124)
Utkarsh Ayachit   
2011-07-29 10:40   
Issue slated for Gatekeeper review on Jul 29, 2 pm EDT.
(0027136)
Dave DeMarle   
2011-07-29 12:33   
verified - at least in so far as looking at the code
(0027155)
Utkarsh Ayachit   
2011-07-29 15:03   
Merged to master (if applicable)