Fix ignored name filter in QFileDialog::getOpenFileContent()
Fixes: QTBUG-104948 Pick-to: 6.4 6.3 6.2 5.15 Change-Id: I83a565bfe604472fcdeb8757464e0e350da5d766 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
644ae42e12
commit
709ca8212e
@ -2311,7 +2311,7 @@ void QFileDialog::getOpenFileContent(const QString &nameFilter, const std::funct
|
||||
#else
|
||||
QFileDialog *dialog = new QFileDialog();
|
||||
dialog->setFileMode(QFileDialog::ExistingFile);
|
||||
dialog->selectNameFilter(nameFilter);
|
||||
dialog->setNameFilter(nameFilter);
|
||||
|
||||
auto fileSelected = [=](const QString &fileName) {
|
||||
QByteArray fileContent;
|
||||
|
Loading…
Reference in New Issue
Block a user