summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-09-25 12:33:38 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-10-03 07:59:16 -0700
commitabc42cc78dccbd43dd7939d2bcb2fd9f2965d040 (patch)
treee06aca3690ccdd6abed4c56f146e31c7bf2c43ea /desktop-widgets
parent3a454d77ba4ac79de9a696e4ed052efc5c3c19d1 (diff)
downloadsubsurface-abc42cc78dccbd43dd7939d2bcb2fd9f2965d040.tar.gz
Read all files on TXT import
We need to read the file given as parameter, not the first in list. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/divelogimportdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/divelogimportdialog.cpp b/desktop-widgets/divelogimportdialog.cpp
index 79a01e25f..c65f89982 100644
--- a/desktop-widgets/divelogimportdialog.cpp
+++ b/desktop-widgets/divelogimportdialog.cpp
@@ -800,7 +800,7 @@ int DiveLogImportDialog::setup_csv_params(QStringList r, char **params, int pnr)
}
int DiveLogImportDialog::parseTxtHeader(QString fileName, char **params, int pnr)
{
- QFile f(fileNames.first());
+ QFile f(fileName);
QString date;
QString time;
QString line;