- 
    
Bug
 - 
    Resolution: Done
 - 
    
P1: Critical
 - 
    5.3.0
 - 
    OS X 10.9
 
- 
        
 - 
        360fd4a278a8827d9727b295a753e623502c7445
 
QWidget::closeEvent is called twice (it doesn't matter if the event is accepted or not).
See attached minimal application.
This is a regression against Qt 5.2.
For some reason Qt Creator still only got a single closeEvent call, until the patch for fixing QTBUG-37933 was integrated - since then Qt Creator also gets the closeEvent twice, leading to a bunch of issues e.g. regarding saving and restoring sessions.
- is required for
 - 
                    
QTBUG-39093 Issues to be fixed for Qt 5.3.1
-         
 - Closed
 
 -         
 
- relates to
 - 
                    
QTBUG-37933 Ampersand is removed two times in menues on Cocoa
-         
 - Closed
 
 -         
 - 
                    
QTBUG-43344 macOS: Regression: closeEvent called twice (still not fixed)
-         
 - Closed
 
 -         
 
| For Gerrit Dashboard: QTBUG-39398 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 86758,1 | Make tryCloseAllWidgetWindows() close QWindows | stable | qt/qtbase | Status: DEFERRED | -1 | 0 | 
| 87051,1 | Cocoa: Don't send duplicate close events. | stable | qt/qtbase | Status: MERGED | +2 | 0 |