From kde-commits Wed Sep 21 16:12:53 2005 From: Will Stephenson Date: Wed, 21 Sep 2005 16:12:53 +0000 To: kde-commits Subject: branches/KDE/3.5/kdepim/kaddressbook/xxport Message-Id: <1127319173.881943.19878.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=112731942624650 SVN commit 462646 by wstephens: Don't import the first row of the CSV if its contents match the header string. TODO: add a 'first line contains header' checkbox post 3.5. M +4 -0 csvimportdialog.cpp --- branches/KDE/3.5/kdepim/kaddressbook/xxport/csvimportdialog.cpp #462645:462646 @@ -182,6 +182,10 @@ } QString value = mTable->text( row, col ); + if ( 1 == row && item->text() == value ) + // we are looking at a header row, stop now + break; + if ( !value.isEmpty() ) emptyRow = false;