diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-01-24 17:03:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-24 14:50:02 -0800 |
commit | 6fb0465654cb7954a2abe822d1b48b31299104c0 (patch) | |
tree | b7d06ce5e9126bb30115ad28423001bb87c6b985 | |
parent | 29c6d03dfa1d8b5017e5d97006d258a73a0fd85e (diff) | |
download | subsurface-6fb0465654cb7954a2abe822d1b48b31299104c0.tar.gz |
Limit the row count properly when displaying CSV file
The import dialog now displays only a maximum of 10 lines of the CSV
file to be imported.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 8c3099fc4..0aa6f90de 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -492,7 +492,7 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy) while (strlen(f.readLine()) > 3 && !f.atEnd()); } - while (rows < 10 || !f.atEnd()) { + while (rows < 10 && !f.atEnd()) { QString currLine = f.readLine(); currColumns = currLine.split(separator); fileColumns.append(currColumns); |