Hi,

My program generates a 3d model in a qvtkWidget when the 'Generate' button in one of the dialogs of the main window is clicked. During the creation of the model, a QProgressDialog appears. When the 'Cancel' button in the QProgressDialog is clicked, the model and the object pertaining to it are deleted, as desired, however the program crashes. I think that the problem is that after the model is deleted, the program returns to where it was in the code the instant that the 'Cancel' button was clicked, calling methods whose classes were just deleted. How can I get the program to reset to the where it was before the 'Generate' button was clicked?

I hope this makes sense