Skip to content
Snippets Groups Projects
Commit eb2e984d authored by Tor Arne Vestbø's avatar Tor Arne Vestbø
Browse files

macOS: Apply window file path when creating new NSWindow


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

Change-Id: Ia2171054aa13e21316d525193d330efaf4653dbf
Reviewed-by: default avatarMorten Johan Sørvig <morten.sorvig@qt.io>
parent 621c5baf
No related merge requests found
...@@ -1292,6 +1292,7 @@ void QCocoaWindow::recreateWindowIfNeeded() ...@@ -1292,6 +1292,7 @@ void QCocoaWindow::recreateWindowIfNeeded()
propagateSizeHints(); propagateSizeHints();
setWindowFlags(window()->flags()); setWindowFlags(window()->flags());
setWindowTitle(window()->title()); setWindowTitle(window()->title());
setWindowFilePath(window()->filePath());
setWindowState(window()->windowState()); setWindowState(window()->windowState());
} else { } else {
// Child windows have no NSWindow, link the NSViews instead. // Child windows have no NSWindow, link the NSViews instead.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment