Commit c574ce2
committed
Reimplement TSaveSourceMgr.FileTypeFromFilterIdx
This method was changed to simply call
TSourceFileInfo.FileTypeFromFilterIdx for the currently selected filter
in the associated dialogue's filter string, instead of calculating the
value locally.
Note that the new method is much more resilient to future changes than
the original implementation which made assumptions about a one to one
relationship between filter indexes and file types.1 parent 5d8cb55 commit c574ce2
1 file changed
+1
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | 218 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 219 | + | |
228 | 220 | | |
229 | 221 | | |
230 | 222 | | |
| |||
0 commit comments