Bug 395985 - QIF Export manually typing file path adds .qif after every character
Summary: QIF Export manually typing file path adds .qif after every character
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: exporter (show other bugs)
Version: 5.0.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-29 05:09 UTC by Joshua Christopher
Modified: 2018-09-08 10:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.0.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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