[kmymoney] [Bug 435552] When passing .kmy file as an argument, do not pass it further to WebConnect

Thomas Baumgart bugzilla_noreply at kde.org
Sat Apr 10 12:00:58 BST 2021


https://bugs.kde.org/show_bug.cgi?id=435552

--- Comment #2 from Thomas Baumgart <tbaumgart at kde.org> ---
The following change in "bool CSVImporter::isMyFormat(const QString& filename)
const" breaks it:

-    return filename.endsWith(QLatin1String(".csv"), Qt::CaseInsensitive)
-           && f.open(QIODevice::ReadOnly | QIODevice::Text);
+    return f.open(QIODevice::ReadOnly | QIODevice::Text);

Any file that can be opened as read-only returns true here. And it turns out to
be even worse: passing xxx.ofx as argument to import using the OFX importer
causes the CSV importer to start.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list