diff --git a/src/Gui/FileDialog.cpp b/src/Gui/FileDialog.cpp index c32d776f2..33cf269c2 100644 --- a/src/Gui/FileDialog.cpp +++ b/src/Gui/FileDialog.cpp @@ -396,7 +396,7 @@ void FileOptionsDialog::accept() QFileInfo fi(fn); QString ext = fi.suffix(); ext.prepend(QLatin1String("*.")); - QStringList filters = this->filters(); + QStringList filters = this->nameFilters(); bool ok=false; // Compare the given suffix with the suffixes of all filters QString filter;