diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2016-09-25 12:33:38 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-10-03 07:59:16 -0700 |
commit | abc42cc78dccbd43dd7939d2bcb2fd9f2965d040 (patch) | |
tree | e06aca3690ccdd6abed4c56f146e31c7bf2c43ea /desktop-widgets | |
parent | 3a454d77ba4ac79de9a696e4ed052efc5c3c19d1 (diff) | |
download | subsurface-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.cpp | 2 |
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; |