Bug 395985

Summary: QIF Export manually typing file path adds .qif after every character
Product: [Applications] kmymoney Reporter: Joshua Christopher <chrisjoshtopher>
Component: exporterAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.0.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.2

Description Joshua Christopher 2018-06-29 05:09:59 UTC
When trying to manually type a path in at the QIF export dialog, the string ".qif" gets added automatically after each character press. See the linked gif showing what is happening on my computer when I type "a" followed by "b" then "c".

https://gfycat.com/SkeletalThunderousCockroach

The final string is "a.qifb.qifc.qif" and if you choose to export with that in the path field then the file is written to $HOME/a.qifb.qifc.qif (on linux, I presume similar for other operating systems?)

If you write the path you want in a separate program such as a text editor, you can copy and paste the path into the field and it will export to the path/file given as expected.
Comment 1 Thomas Baumgart 2018-09-08 10:07:38 UTC
Git commit 93a87bc816bba1a5c09642981d4a0b3cab6b873b by Thomas Baumgart.
Committed on 08/09/2018 at 10:08.
Pushed by tbaumgart into branch '5.0'.

Fix appending of file extension on export

Only append the necessary file extension when the focus leaves the field
and not on every key pressure. Harmonize behavior of CSV and QIF
exporter.
FIXED-IN: 5.0.2

M  +3    -6    kmymoney/plugins/csv/export/csvexportdlg.cpp
M  +1    -1    kmymoney/plugins/qif/export/kexportdlg.cpp

https://commits.kde.org/kmymoney/93a87bc816bba1a5c09642981d4a0b3cab6b873b