summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qpagesetupdialog_mac.mm
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-04-18 13:50:38 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-04-18 13:50:38 (GMT)
commitcc52a813b396f8c4726d4c889bc391c015d36d11 (patch)
tree4d03149b1d608e2659d6ec6e893ee3de17216e76 /src/gui/dialogs/qpagesetupdialog_mac.mm
parent0cea0e45523283d6c31998672f97b0343c1388f2 (diff)
parent66620e60c9526baf0d3c7a7198e3ab15d9abc0f8 (diff)
downloadQt-cc52a813b396f8c4726d4c889bc391c015d36d11.zip
Qt-cc52a813b396f8c4726d4c889bc391c015d36d11.tar.gz
Qt-cc52a813b396f8c4726d4c889bc391c015d36d11.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: (71 commits) Autotest: increase wait time to 3s on Windows to bypass 2s-granularity limitation Autotest: update to the new values for the locale do not expand variables in read()'s file name remove ability to use break() a block outside any loop don't add -unix to the qmake command line Increase the timeout for the QNAM getter test to 30 seconds Remove unstable hosts from the list qdoc: Output TOC for more class ref pages. Other fixes to the remote network stresstester Fix SSL connection problem. Make sure we don't try URLs that aren't HTTP or HTTPS Fix menu bar visibility. Add SSL remote host tests Split the remote and the local tests in two, in preparation for SSL tests Add tests for remote hosts Change the way we calculate the average transfer rates. Finish renaming Move these tests to tests/manual. Add a QNetworkAccessManager stresstest Add a non-blocking native function too ...
Diffstat (limited to 'src/gui/dialogs/qpagesetupdialog_mac.mm')
-rw-r--r--src/gui/dialogs/qpagesetupdialog_mac.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/dialogs/qpagesetupdialog_mac.mm b/src/gui/dialogs/qpagesetupdialog_mac.mm
index 13ffa05..cfcde0f 100644
--- a/src/gui/dialogs/qpagesetupdialog_mac.mm
+++ b/src/gui/dialogs/qpagesetupdialog_mac.mm
@@ -232,6 +232,11 @@ void QPageSetupDialogPrivate::openCocoaPageLayout(Qt::WindowModality modality)
void QPageSetupDialogPrivate::closeCocoaPageLayout()
{
+ // NSPageLayout can change the session behind our back and then our
+ // d->ep->session object will become a dangling pointer. Update it
+ // based on the "current" session
+ ep->session = static_cast<PMPrintSession>([ep->printInfo PMPrintSession]);
+
[pageLayout release];
pageLayout = 0;
}