Blame 0009-Set-start-line-to-one-during-CSV-import.patch
|
Rex Dieter |
a58b0a0 |
From 28fbbe52fb98bc1e6add434670b5fcd359c357c4 Mon Sep 17 00:00:00 2001
|
|
Rex Dieter |
a58b0a0 |
From: =?UTF-8?q?=C5=81ukasz=20Wojni=C5=82owicz?=
|
|
Rex Dieter |
a58b0a0 |
<lukasz.wojnilowicz@gmail.com>
|
|
Rex Dieter |
a58b0a0 |
Date: Sat, 18 Jun 2016 19:14:05 +0200
|
|
Rex Dieter |
a58b0a0 |
Subject: [PATCH 09/22] Set start line to one during CSV import
|
|
Rex Dieter |
a58b0a0 |
|
|
Rex Dieter |
a58b0a0 |
Initial value of m_startLine should always be greater than zero. Shall
|
|
Rex Dieter |
a58b0a0 |
user have start line greater than one, it will be set by appropriate
|
|
Rex Dieter |
a58b0a0 |
slot.
|
|
Rex Dieter |
a58b0a0 |
---
|
|
Rex Dieter |
a58b0a0 |
kmymoney/plugins/csvimport/investprocessing.cpp | 4 ++--
|
|
Rex Dieter |
a58b0a0 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Rex Dieter |
a58b0a0 |
|
|
Rex Dieter |
a58b0a0 |
diff --git a/kmymoney/plugins/csvimport/investprocessing.cpp b/kmymoney/plugins/csvimport/investprocessing.cpp
|
|
Rex Dieter |
a58b0a0 |
index 34e53c8..7562c73 100644
|
|
Rex Dieter |
a58b0a0 |
--- a/kmymoney/plugins/csvimport/investprocessing.cpp
|
|
Rex Dieter |
a58b0a0 |
+++ b/kmymoney/plugins/csvimport/investprocessing.cpp
|
|
Rex Dieter |
a58b0a0 |
@@ -104,7 +104,7 @@ InvestProcessing::InvestProcessing()
|
|
Rex Dieter |
a58b0a0 |
m_detailColumn = -1;
|
|
Rex Dieter |
a58b0a0 |
m_endLine = 0;
|
|
Rex Dieter |
a58b0a0 |
m_fileEndLine = 0;
|
|
Rex Dieter |
a58b0a0 |
- m_startLine = 0;
|
|
Rex Dieter |
a58b0a0 |
+ m_startLine = 1;
|
|
Rex Dieter |
a58b0a0 |
m_topLine = 0;
|
|
Rex Dieter |
a58b0a0 |
m_row = 0;
|
|
Rex Dieter |
a58b0a0 |
m_endColumn = 0;
|
|
Rex Dieter |
a58b0a0 |
@@ -2038,7 +2038,7 @@ void InvestProcessing::readSettings()
|
|
Rex Dieter |
a58b0a0 |
m_csvDialog->m_wiz->m_pageInvestment->ui->comboBoxInv_securityName->setCurrentIndex(tmp);
|
|
Rex Dieter |
a58b0a0 |
|
|
Rex Dieter |
a58b0a0 |
tmp = m_startLine;
|
|
Rex Dieter |
a58b0a0 |
- m_startLine = profilesGroup.readEntry("StartLine", -1) + 1;
|
|
Rex Dieter |
a58b0a0 |
+ m_startLine = profilesGroup.readEntry("StartLine", 0) + 1;
|
|
Rex Dieter |
a58b0a0 |
if (m_startLine > m_endLine) {
|
|
Rex Dieter |
a58b0a0 |
m_startLine = tmp;
|
|
Rex Dieter |
a58b0a0 |
}
|
|
Rex Dieter |
a58b0a0 |
--
|
|
Rex Dieter |
a58b0a0 |
2.7.4
|
|
Rex Dieter |
a58b0a0 |
|