LibreCAD/LibreCAD — Issue #211: CAD-Toolbar: File-Filter trouble upon "insert image"
Author: PatGuano
Created: 2011-10-28 19:57:03+00:00
State: open

Use of a deprecated FileDialog method " setFilters(const QStringList &filters)" leads to a missing wildcard-character (*) in the file-filter.

In consequence, images of the supported formats are only found, when the user actively chooses "All files" or "All image files".
Screenshots:

filter "all":
http://www.uplawski.eu/div/screenshots/LibreCAD/file_filter_all.png

same folder, filter "XPM":
http://www.uplawski.eu/div/screenshots/LibreCAD/file_filter_xpm.png

see QString QG_DialogFactory::requestImageOpenDialog()

Although I want to be cautious and will not (yet) correct this bug myself, I suggest to re-introduce the wildcard explicitely by concatenation of the QStringList-elements, then to call fileDlg.setNameFilter ( const QString & filter ), not the version with the QStringList.