[Kita-svn] [2462] empty lines should be ignored

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2009年 7月 22日 (水) 22:41:41 JST


Revision: 2462
          http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2462
Author:   nogu
Date:     2009-07-22 22:41:41 +0900 (Wed, 22 Jul 2009)

Log Message:
-----------
empty lines should be ignored

Modified Paths:
--------------
    kita/branches/KITA-KDE4/kita/src/prefs/aboneprefpage.cpp

Modified: kita/branches/KITA-KDE4/kita/src/prefs/aboneprefpage.cpp
===================================================================
--- kita/branches/KITA-KDE4/kita/src/prefs/aboneprefpage.cpp	2009-07-21 14:17:39 UTC (rev 2461)
+++ kita/branches/KITA-KDE4/kita/src/prefs/aboneprefpage.cpp	2009-07-22 13:41:41 UTC (rev 2462)
@@ -27,15 +27,15 @@
 void AbonePrefPage::apply()
 {
     QString idText = idAboneText->toPlainText();
-    QStringList idList = idText.split('\n');
+    QStringList idList = idText.split('\n', QString::SkipEmptyParts);
     AboneConfig::setAboneIDList(idList);
 
     QString nameText = nameAboneText->toPlainText();
-    QStringList nameList = nameText.split('\n');
+    QStringList nameList = nameText.split('\n', QString::SkipEmptyParts);
     AboneConfig::setAboneNameList(nameList);
 
     QString wordText = wordAboneText->toPlainText();
-    QStringList wordList = wordText.split('\n');
+    QStringList wordList = wordText.split('\n', QString::SkipEmptyParts);
     AboneConfig::setAboneWordList(wordList);
 }
 




Kita-svn メーリングリストの案内
アーカイブの一覧に戻る