In a normal PyQt window that isnt being called by a shotgun app, if there is un-submitted data that i dont want the user to loose. I can check and event.ignore() in the def closeEvent(self,event): but that wont work here because I am not the parent app.
I was wondering if you knew a way around this?
Cheers for the help!
PS here is the work around that phil and I tried in the __init__.py that calls the app
# defer imports so that the app works gracefully in batch modes
from .rigtastic import AppDialog
# show the dialog window using the engine's show_dialog method
widget = app.engine.show_dialog("Rigtastic", app, AppDialog, app)
widget.closeEvent = closeEvent
print "CLOSE EVENT RUNNING"