{"action":"created","issue":{"url":"https://api.github.com/repos/openscad/openscad/issues/1367","labels_url":"https://api.github.com/repos/openscad/openscad/issues/1367/labels{/name}","comments_url":"https://api.github.com/repos/openscad/openscad/issues/1367/comments","events_url":"https://api.github.com/repos/openscad/openscad/issues/1367/events","html_url":"https://github.com/openscad/openscad/pull/1367","id":88082733,"number":1367,"title":"Use QSaveFile (if available) to write designs to disk. (fixes #1350)","user":{"login":"t-paul","id":1330241,"avatar_url":"https://avatars.githubusercontent.com/u/1330241?v=3","gravatar_id":"","url":"https://api.github.com/users/t-paul","html_url":"https://github.com/t-paul","followers_url":"https://api.github.com/users/t-paul/followers","following_url":"https://api.github.com/users/t-paul/following{/other_user}","gists_url":"https://api.github.com/users/t-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/t-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-paul/subscriptions","organizations_url":"https://api.github.com/users/t-paul/orgs","repos_url":"https://api.github.com/users/t-paul/repos","events_url":"https://api.github.com/users/t-paul/events{/privacy}","received_events_url":"https://api.github.com/users/t-paul/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openscad/openscad/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-13T23:27:55Z","updated_at":"2015-06-19T20:51:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openscad/openscad/pulls/1367","html_url":"https://github.com/openscad/openscad/pull/1367","diff_url":"https://github.com/openscad/openscad/pull/1367.diff","patch_url":"https://github.com/openscad/openscad/pull/1367.patch"},"body":"Always check the status of the QTextStream to catch problems like disk full.\r\n\r\nIn addition QSaveFile can ensure the old file is not destroyed as it's using a temporary file which is committed at the end by just renaming it to the output file name. Unfortunately this is only available with Qt 5.1.\r\n\r\nI guess this needs some cross-platform testing. On Linux it did not simply catch the device full problem as advertised. Instead it happily committed a zero byte length file. This is now caught by checking the QTextStream status."},"comment":{"url":"https://api.github.com/repos/openscad/openscad/issues/comments/113640411","html_url":"https://github.com/openscad/openscad/pull/1367#issuecomment-113640411","issue_url":"https://api.github.com/repos/openscad/openscad/issues/1367","id":113640411,"user":{"login":"kintel","id":186094,"avatar_url":"https://avatars.githubusercontent.com/u/186094?v=3","gravatar_id":"","url":"https://api.github.com/users/kintel","html_url":"https://github.com/kintel","followers_url":"https://api.github.com/users/kintel/followers","following_url":"https://api.github.com/users/kintel/following{/other_user}","gists_url":"https://api.github.com/users/kintel/gists{/gist_id}","starred_url":"https://api.github.com/users/kintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kintel/subscriptions","organizations_url":"https://api.github.com/users/kintel/orgs","repos_url":"https://api.github.com/users/kintel/repos","events_url":"https://api.github.com/users/kintel/events{/privacy}","received_events_url":"https://api.github.com/users/kintel/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T20:51:02Z","updated_at":"2015-06-19T20:51:02Z","body":"Works fine on Mac.\r\n"}}