Blob Blame Raw
From 9c5397238947c8a010eb2e0939cb34d729dfb751 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Wojni=C5=82owicz?=
 <lukasz.wojnilowicz@gmail.com>
Date: Sat, 18 Jun 2016 19:15:02 +0200
Subject: [PATCH 10/22] Set type of banking statement to unknown during CSV
 import

Type of banking statement shouldn't be set to 'checkings' by default,
bacause statement to be imported could be 'checking' but also 'credit
card'.

BUG: 364425
---
 kmymoney/plugins/csvimport/csvdialog.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kmymoney/plugins/csvimport/csvdialog.cpp b/kmymoney/plugins/csvimport/csvdialog.cpp
index 6799df7..e4a6d8b 100644
--- a/kmymoney/plugins/csvimport/csvdialog.cpp
+++ b/kmymoney/plugins/csvimport/csvdialog.cpp
@@ -821,7 +821,7 @@ void CSVDialog::readFile(const QString& fname)
   m_screenUpdated = false;
 
   //  Display the buffer
-
+  st.m_eType = MyMoneyStatement::etNone;
   for (int line = 0; line < m_lineList.count(); line++) {
     m_inBuffer = m_lineList[line];
 
@@ -1398,7 +1398,6 @@ void CSVDialog::csvImportTransaction(MyMoneyStatement& st)
   QString payee = m_trData.payee;//                              extractLine('P')
   // Process transaction data
   tr.m_strBankID = m_trData.id;
-  st.m_eType = MyMoneyStatement::etCheckings;
   tr.m_datePosted = m_trData.date;
   if (!tr.m_datePosted.isValid()) {
     int rc = KMessageBox::warningContinueCancel(0, i18n("The date entry \"%1\" read from the file cannot be interpreted through the current "
-- 
2.7.4