[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdepim/kaddressbook/xxport
From:       Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date:       2005-09-21 16:12:53
Message-ID: 1127319173.881943.19878.nullmailer () svn ! kde ! org
[Download RAW message or body]

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;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic