From 6fb0465654cb7954a2abe822d1b48b31299104c0 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sat, 24 Jan 2015 17:03:12 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') 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); -- cgit v1.2.3-70-g09d2