macOS: Apply window file path when creating new NSWindow

Otherwise QWindow::setFilePath() before create() would have no effect.

Change-Id: Ia2171054aa13e21316d525193d330efaf4653dbf
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Tor Arne Vestbø 2017-09-28 13:44:34 +02:00
parent 621c5baf66
commit eb2e984da1

View File

@ -1292,6 +1292,7 @@ void QCocoaWindow::recreateWindowIfNeeded()
propagateSizeHints();
setWindowFlags(window()->flags());
setWindowTitle(window()->title());
setWindowFilePath(window()->filePath());
setWindowState(window()->windowState());
} else {
// Child windows have no NSWindow, link the NSViews instead.