Mac: make windows not restorable on 10.7 and later
authorLiang Qi <liang.qi@digia.com>
Tue, 6 Aug 2013 05:34:45 +0000 (07:34 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 11 Aug 2013 12:30:21 +0000 (14:30 +0200)
commitf7efbae117595c2503ca85bfca7f27e0b6a92328
tree761c46d37da54fc97d9cfc2a9e972cdfc08a5ef4
parent4a2c688e2a0542e450a6405a74cda4762555af4f
Mac: make windows not restorable on 10.7 and later

The default value for NSWindow::setRestorable: is true, it means
application will have some information for each window stored.
After a crash happened and application relaunched, the application
tries to restore those windows from the broken file. And then the
"Retore Windows" will pop up. There is no workaround for
application users or develoeprs. What they can do is to manually
remove the the saved application state file for the application.

To avoid that, better to switch it off.

Task-number: QTBUG-28281
Change-Id: I4cc81b51b157139ff5e299e85a9bbce05f544219
(cherry-modified from qtbase commit 2aef22b77aa15eb0863a9585af77ccab04425dbd)
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
src/plugins/platforms/cocoa/qcocoawindow.mm