From abc42cc78dccbd43dd7939d2bcb2fd9f2965d040 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 25 Sep 2016 12:33:38 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- desktop-widgets/divelogimportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/divelogimportdialog.cpp') 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; -- cgit v1.2.3-70-g09d2