zxcalc / quantomatic

Quantomatic is a tool for doing automated graph rewriting.
http://quantomatic.github.io
154 stars 22 forks source link

data loss when closing->saving->cancelling on new document #133

Closed zamdzhiev closed 10 years ago

zamdzhiev commented 10 years ago
  1. create new document
  2. make some changes
  3. try to close the document
  4. dialog appears and press save
  5. SaveAs prompt appears
  6. press cancel
  7. document closes and your changes are lost

the expected behavior in 7 should be to go back to the state after 2.

zamdzhiev commented 10 years ago

The above commit fixes that, but I can't figure out how to set the directory of the SaveAs dialog to the current project directory from the method in the patch. Anyway, this is a very minor inconvenience with a simple workaround (just use SaveAs before closing) and I am sleepy.