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:
parent
48e0c4df23
commit
7024bc7091
@ -218,6 +218,8 @@ static QString strippedText(QString s)
|
|||||||
*mCurrentSelection = QT_PREPEND_NAMESPACE(QCFString::toQString)([[mSavePanel URL] path]);
|
*mCurrentSelection = QT_PREPEND_NAMESPACE(QCFString::toQString)([[mSavePanel URL] path]);
|
||||||
if ([mSavePanel respondsToSelector:@selector(closePanel:)])
|
if ([mSavePanel respondsToSelector:@selector(closePanel:)])
|
||||||
[mSavePanel close];
|
[mSavePanel close];
|
||||||
|
if ([mSavePanel isSheet])
|
||||||
|
[NSApp endSheet: mSavePanel];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)showModelessPanel
|
- (void)showModelessPanel
|
||||||
|
Loading…
Reference in New Issue
Block a user