Bug 388738 - Choosing the file type, the filename gets the trailing field delimited by a dot (".") removed by Krita, if: a) it has multiple dots in it and b) it doesn't have an extension specified (Krita 3.3.2 appimage)
Summary: Choosing the file type, the filename gets the trailing field delimited by a d...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: 3.3.2
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-09 15:46 UTC by mvowada
Modified: 2018-01-24 09:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mvowada 2018-01-09 15:46:16 UTC
(Krita 3.3.2 appimage on Ubuntu 14.04)
Steps to reproduce:

    1) "file > save" a new document
    2) type a filename with a) multiple dots in it and b) no extension specified (like i.e. "my.painting")
    3) choose a file type

Actual results: the filename is cut at the trailing dot, resulting in i.e. "my.png"

Expected result: do not cut the filename containing multiple dots, when choosing the file type and the extension has not been typed yet
Comment 1 Halla Rempt 2018-01-17 13:28:24 UTC
Git commit 23d10f42db59d4404148b2a29cda8c78cb28eb80 by Boudewijn Rempt.
Committed on 17/01/2018 at 13:27.
Pushed by rempt into branch 'master'.

KoFileDialog: check whether the suffix reflects a mimetype

If the suffix doesn't map to a mimetype, it probably isn't a mimetype,
so we should add the suffix for the currently selected filter.

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

https://commits.kde.org/krita/23d10f42db59d4404148b2a29cda8c78cb28eb80
Comment 2 Halla Rempt 2018-01-24 09:16:01 UTC
Git commit 1b6b998b2dc181e78828c67b320e544a206f383f by Boudewijn Rempt.
Committed on 24/01/2018 at 09:14.
Pushed by rempt into branch 'master'.

Improve the check for mimetypes in KisMimeDataBase

This fixes the regression caused by

23d10f42db59d4404148b2a29cda8c78cb28eb80

M  +1    -6    libs/koplugin/KisMimeDatabase.cpp
M  +6    -1    libs/widgetutils/KoFileDialog.cpp

https://commits.kde.org/krita/1b6b998b2dc181e78828c67b320e544a206f383f