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

List:       kde-commits
Subject:    playground/pim/krss/resources/libkrssresource
From:       Dmitry Ivanov <vonami () gmail ! com>
Date:       2009-04-12 19:51:57
Message-ID: 1239565917.452731.23699.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 952894 by divanov:

Don't crash if the default tag is not set


 M  +2 -1      importopmljob.cpp  


--- trunk/playground/pim/krss/resources/libkrssresource/importopmljob.cpp \
#952893:952894 @@ -219,7 +219,8 @@
             kDebug() << "Adding tag:" << tags.at( tagIndex ).label() << ", id:" << \
tags.at( tagIndex ).id();  feed.addTag( tags.at( tagIndex ).id() );
         }
-        feed.addTag( tags.last().id() ); // the last one is the default tag
+        if ( !m_defaultTag.isEmpty() )
+            feed.addTag( tags.last().id() ); // the last one is the default tag
         ++currentFeed;
         feedsToImport.append( feed );
     }


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

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