[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/kblog
From: Christian Weilbach <christian () whiletaker ! homeip ! net>
Date: 2008-03-22 9:24:45
Message-ID: 1206177885.731750.371.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 788694 by weilbach:
Fix fetchPost: The parsing and signal emitting has been lost somewhere? Readded now.
M +5 -2 blogger1.cpp
--- trunk/KDE/kdepimlibs/kblog/blogger1.cpp #788693:788694
@@ -333,7 +333,11 @@
// dateCreated, String userid, String postid, String content;
// TODO: Time zone for the dateCreated!
kDebug () << "TOP:" << result[0].typeName();
- if ( result[0].type() != QVariant::Map ) {
+ if ( result[0].type() == QVariant::Map && readPostFromMap( post, result[0].toMap() ) ) {
+ kDebug() << "Emitting fetchedPost()";
+ emit q->fetchedPost( post );
+ }
+ else {
kError() << "Could not fetch post out of the result from "
<< "the server.";
post->setError( i18n( "Could not fetch post out of the "
@@ -342,7 +346,6 @@
emit q->errorPost( Blogger1::ParsingError,
i18n( "Could not fetch post out of the result "
"from the server." ), post );
- return;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic