Bug 363769

Summary: Exporting to file format such as .png and .bmp appends extra period to filename
Product: [Applications] krita Reporter: Nimthora
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: elkmug, j, jesse.walden
Priority: NOR    
Version First Reported In: 3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nimthora 2016-06-01 03:04:34 UTC
When exporting a file in the portable Krita 64-bit windows version to .png (and other formats) the name you give the file contains an extra period after exporting. For example, exporting something as "Test.png" will be called "Test..png".

Reproducible: Always

Steps to Reproduce:
1. Make a new canvas
2. Draw anything
3. Export file as .png and give it a name
4. Look at file in filesystem (and notice the extra period)

Actual Results:  
Filename contains an extra period

Expected Results:  
Filename should be named what you told it to be named
Comment 1 elkmug 2016-06-01 13:59:27 UTC
I can confirm this happens in 3.0 on both Win 7 64-bit SP1 and Linux Mint 17 LTS.  

The issue can be avoided by explicitly adding the file extension when entering the file name.  For example, if you type 'test_01.kra'  in the name field the extra dot will not be added.  

Also this problem is not limited to just image files. I've experienced the same issue when saving painting assistants.
Comment 2 Halla Rempt 2016-06-07 08:43:46 UTC
Git commit e3c50382e5d43d1ff45e437363e4e0e8b12fc6d5 by Boudewijn Rempt.
Committed on 07/06/2016 at 08:43.
Pushed by rempt into branch 'krita/3.0'.

M  +5    -1    libs/widgetutils/KoFileDialog.cpp

http://commits.kde.org/krita/e3c50382e5d43d1ff45e437363e4e0e8b12fc6d5