summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-01-14 13:39:28 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-18 14:55:22 +0100
commit7024bc70917b6837e2d1e37b1d52350a28d978c5 (patch)
treeade191ab88f150f929654ce54779d8bf4d9e4cf3 /src
parent48e0c4df2337e94bb845f5312dd7d88f75d9716c (diff)
Call endSheet when the QFileDialog was shown as a sheet on Mac
If the sheet is not ended then subseqent calls to show a sheet will not work correctly. Change-Id: Ib8a43a1c96a3dadff196c433e822f7579ad87b8b Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm b/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm
index 8e1c92b235..22fbf80bfe 100644
--- a/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm
+++ b/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm
@@ -218,6 +218,8 @@ static QString strippedText(QString s)
*mCurrentSelection = QT_PREPEND_NAMESPACE(QCFString::toQString)([[mSavePanel URL] path]);
if ([mSavePanel respondsToSelector:@selector(closePanel:)])
[mSavePanel close];
+ if ([mSavePanel isSheet])
+ [NSApp endSheet: mSavePanel];
}
- (void)showModelessPanel