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>
This commit is contained in:
Andy Shaw 2013-01-14 13:39:28 +01:00 committed by The Qt Project
parent 48e0c4df23
commit 7024bc7091

View File

@ -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