path: root/src/plugins
diff options
authorAndy Shaw <>2013-01-14 13:39:28 +0100
committerThe Qt Project <>2013-01-18 14:55:22 +0100
commit7024bc70917b6837e2d1e37b1d52350a28d978c5 (patch)
treeade191ab88f150f929654ce54779d8bf4d9e4cf3 /src/plugins
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 <>
Diffstat (limited to 'src/plugins')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/ b/src/plugins/platforms/cocoa/
index 8e1c92b235..22fbf80bfe 100644
--- a/src/plugins/platforms/cocoa/
+++ b/src/plugins/platforms/cocoa/
@@ -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