diff --git a/bilbokblog/gdata.cpp b/bilbokblog/gdata.cpp index 4b92627..160c4aa 100644 --- a/bilbokblog/gdata.cpp +++ b/bilbokblog/gdata.cpp @@ -782,7 +782,11 @@ void GDataPrivate::slotFetchPost( Syndication::Loader *loader, QList::ConstIterator end = items.constEnd(); for ( ; it != end; ++it ) { QRegExp rx( "post-(\\d+)" ); - if ( rx.indexIn( ( *it )->id() ) != -1 && rx.cap(1) == post->postId() ){ + kDebug()<<"id: "<<(*it)->id()<<"\t"<<(*it)->id().isNull(); + kDebug()<<"postId: "<postId()<<"\t"<postId().isNull(); + int indexIn = rx.indexIn( ( *it )->id() ); + kDebug()<postId() ){ kDebug() << "QRegExp rx( 'post-(\\d+)' matches" << rx.cap(1); post->setPostId( rx.cap(1) ); post->setTitle( ( *it )->title() );