i’m not sure if this could be called a bug but rs.OpenFileName seems to allow me to select an *.url file instead of an *.svg file in below example code:
Could this be improved so it does only show the files having the extensions defined in the filter attribute ? Or is this maybe on purpose as the url could point to an svg file ?
no, i was trying to prevent that the user is allowed to pick anything else than svg and wondering why it allows me url files to be picked in the dialog at all. I did not type anything, just picked it from the list of files in the dialog.
@clement - from what I’ve been able to dig up, the Windows’ Open File common dialog does show Internet Shortcuts along with folders. I have no idea why, but it does. And it happens in other Windows apps (Notepad).
There is probably a way to hack around this. I’m sure it’s a lot of work.