Use [NSSavePanel directoryUrl].

[NSSavePanel directory] is deprecated.

Change-Id: I3515b565a25028dc5b7c966481707e001e44a077
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
Morten Johan Sørvig 2013-03-22 09:28:10 +01:00 committed by The Qt Project
parent 73d4fc6219
commit 5ad615ae8c

View File

@ -586,7 +586,7 @@ QString QCocoaFileDialogHelper::directory() const
{
QT_MANGLE_NAMESPACE(QNSOpenSavePanelDelegate) *delegate = static_cast<QT_MANGLE_NAMESPACE(QNSOpenSavePanelDelegate) *>(mDelegate);
if (delegate)
return QCFString::toQString([delegate->mSavePanel directory]);
return QCFString::toQString([[delegate->mSavePanel directoryURL] path]);
return QString();
}