summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-09-28 13:44:34 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-09-28 12:21:23 +0000
commiteb2e984da11d642f191e28456042e6b38ce56647 (patch)
tree847993c0ee1908f3f5838903aaff81497a6f1954
parent621c5baf66722032927ecc4194771833b7aa57ae (diff)
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>
-rw-r--r--src/plugins/platforms/cocoa/qcocoawindow.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm
index a88ec2b0db..217bfb3602 100644
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -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.