select appropriate file filter corresponding to "Mode" #1535
Describe the new feature
The file filter for "import" in "Edit Database Cell" is always start with "Text Files".
Version 3.10.99 (Sep 15 2018)
Please answer these questions before submitting your feature request.
Is your feature request related to an issue? Please include the issue number.
Does this feature exist in another product or project? Please provide a link.
Do you have a screenshot? Please add screenshots to help explain your idea.
The text was updated successfully, but these errors were encountered:
This reorders the filters in the import file dialog of the Edit Cell dock so the first entry is always in accordance to the currently selected mode. This will also facilitate the translation of the filters, because the translations can be reused and written without special syntax characters (";;"). "%1 Image" is also used instead of a concatenation, because the word order in translations will vary.
I can't reproduce any problem with the XML mode. It's true it's different. The XML data is not currently being detected, but the other cases, yes. But depending on the currently selected mode, the XML filter is set first (which should be the default) and then is added the txt filter, just in case the mode is not coherent with the data. But it could be changed to use only XML and All files as filters.
Is your case different to this?
What operating system and Qt version are you using?
For me, the filter is fixed to 'All Files' with the XML mode.
The XML branch in the import was incorrectly programmed. Now it sets the appropriate selected filter. The list of filters is initialised once and the selected filter is passed to the dialog using the specific parameter. Chopped the last space in the image formats list for better style. Case insensitivity applied to the suffix check as done in other parts of the code. See issue #1535.