Bug 367929

Summary: Not changing file extension when saving through "save us" and adding extra dot
Product: [Applications] krita Reporter: kalia24
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: halla
Priority: NOR    
Version First Reported In: 3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Not changed format of the file
Not changed format of the file 2
Double dot

Description kalia24 2016-08-28 16:44:03 UTC
When opening some file format (let's say *.tif) and then trying to save as *.kra file (or any other format different from the original one in fact), when I choose the desired target format from the list, the extension of the actual file doesn't get changed (see attachment "not_changed_extension.png"). It's quite inconvenient and annoying, since when I hit OK, the file is not even saved as *.tif.kra, but it remains simple *.tif (see attachment "not_changed_extension2.png"). [sorry for the PL texts in screens, but the popup windows look the same in any language, so I hope u get what's going on]

The "fun" doesn't end here though, since even when I manually delete the wrong extension (with dot) in the "Save as..." window, leaving only file name and hit OK on saving, the file is saved as *.kra... but with double dot (see attachment "double_dot.png").

This must be some kind of regression in saving mechanism, since it never happened to me in previous versions of Krita.

Reproducible: Always

Steps to Reproduce:
a)
1. Open some file.
2. Try to save it with different extension.
b)
1. Open some file.
2. Try to save it with different extension, removing the original extension and the dot manually in the "Save as..." window.

Actual Results:  
The extension remains the same/saves with double dot.

Expected Results:  
Extension should follow the options chosen in "Save as..." window and be saved with single dot (unless ofc. there was a dot in the file name, but u get the point).
Comment 1 kalia24 2016-08-28 16:44:43 UTC
Created attachment 100824 [details]
Not changed format of the file
Comment 2 kalia24 2016-08-28 16:45:11 UTC
Created attachment 100825 [details]
Not changed format of the file 2
Comment 3 kalia24 2016-08-28 16:45:37 UTC
Created attachment 100826 [details]
Double dot
Comment 4 Halla Rempt 2016-08-28 19:49:35 UTC
Hi,

This is fixed in 3.0.1 -- you can test that with the dev builds we've announced on krita.org.