Closing main window with "X" doesn't prompt to save changes
Closing main window with "X" doesn't prompt to save changes

When handling Qt closeEvent, cannot defer accept/ignore on the provided event until async runJavaScript invokes callback. So, ignore the event before runJavaScript, then take the appropriate action.

JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio