Commit 9d3b483c authored by Stephane Mankowski's avatar Stephane Mankowski
Browse files

BUG:320298

Default automatic format detection while importing a file leads to wrong entries creation
parent bd1ab65e
......@@ -8,6 +8,7 @@ skrooge (1.8.0)
*Correction bug 320261: Dashboard "Income & expenditure": no values, strange colors
*Correction bug 320157: Skrooge not working when .skg file is located on Samba share
*Correction bug 320323: Add function ("rest to") In budget
*Correction bug 320298: Default automatic format detection while importing a file leads to wrong entries creation
*Correction: Addition of all icons in size 256 and 512
*Correction: Block drop of a bookmark under an other bookmark
*Correction: Bad date format detection when the second value is 9 (example: 3/9/04)
......
......@@ -444,14 +444,14 @@ void SKGImportExportPlugin::import(const QList<KUrl>& iFiles)
parameters["columns_positions"] = skgimportexport_settings::columns_positions();
parameters["mode_csv_unit"] = (sender() == m_importCsvUnitAction ? "Y" : "N");
parameters["date_format"] = skgimportexport_settings::csv_date_format();
if (parameters["date_format"] == i18nc("Format date", "Automatic detection")) parameters["date_format"] = "";
if (!parameters["date_format"].contains("YY")) parameters["date_format"] = "";
imp1.setImportParameters(parameters);
} else if (QFileInfo(fileName.path()).suffix().toUpper() == "QIF") { //TODO: Better
QMap<QString, QString> parameters = imp1.getImportParameters();
parameters["date_format"] = skgimportexport_settings::qif_date_format();
if (parameters["date_format"] == i18nc("Format date", "Automatic detection")) parameters["date_format"] = "";
if (!parameters["date_format"].contains("YY")) parameters["date_format"] = "";
imp1.setImportParameters(parameters);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment