Windows: Silence warning in QWindowsFileDialogHelper::selectFile().
The function is invoked from the QFileDialog constructor in save file mode when passing a non-existing file. Task-number: QTBUG-35703 Change-Id: I5c13efb9b6789404b28739f6ce88ed87b594b6e4 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
131a511194
commit
b4c28856f1
@ -1633,8 +1633,8 @@ void QWindowsFileDialogHelper::selectFile(const QUrl &fileName)
|
|||||||
if (QWindowsContext::verboseDialogs)
|
if (QWindowsContext::verboseDialogs)
|
||||||
qDebug("%s %s" , __FUNCTION__, qPrintable(fileName.toString()));
|
qDebug("%s %s" , __FUNCTION__, qPrintable(fileName.toString()));
|
||||||
|
|
||||||
if (QWindowsNativeFileDialogBase *nfd = nativeFileDialog())
|
if (hasNativeDialog()) // Might be invoked from the QFileDialog constructor.
|
||||||
nfd->selectFile(fileName.toLocalFile()); // ## should use QUrl::fileName() once it exists
|
nativeFileDialog()->selectFile(fileName.toLocalFile()); // ## should use QUrl::fileName() once it exists
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<QUrl> QWindowsFileDialogHelper::selectedFiles() const
|
QList<QUrl> QWindowsFileDialogHelper::selectedFiles() const
|
||||||
|
Loading…
Reference in New Issue
Block a user