protegeproject / protege

Protege Desktop
http://protege.stanford.edu
Other
971 stars 229 forks source link

Do not override user-provided extension. #1104

Closed gouttegd closed 1 year ago

gouttegd commented 1 year ago

When saving a file under a user-provided name, we check the name for any extension. If there is no extension or if the extension is not one of the allowed extensions for the chosen file format, we forcibly append an allowed extension to the filename.

This commit updates this behaviour to append an extension only in the case where there is no extension. If the user-provided filename already has an extension, we keep it as it is even if we don't recognize the extension.

closes #1087.

gouttegd commented 1 year ago

@matentzn Please confirm this is the behaviour you wanted in #1087.

matentzn commented 1 year ago

YES excellent! Thanks!