[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: 2009-09-30 14:15:17
Message-ID: 1254320117.626354.9218.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1029683 by weilbach:
Fix small glitches.
M +1 -1 movabletype.cpp
M +2 -1 wordpressbuggy.cpp
--- trunk/KDE/kdepimlibs/kblog/movabletype.cpp #1029682:1029683
@@ -128,7 +128,7 @@
else {
bool publish = post->isPrivate();
// If we do setPostCategories() later than we disable publishing first.
- if( post->categories().count()>1 ){
+ if( !post->categories().isEmpty() ){
post->setPrivate( true );
if ( d->mSilentCreationList.contains( post ) ) {
kDebug()<< "Post already in mSilentCreationList, this *should* never happen!";
--- trunk/KDE/kdepimlibs/kblog/wordpressbuggy.cpp #1029682:1029683
@@ -81,7 +81,7 @@
bool publish = post->isPrivate();
// If we do setPostCategories() later than we disable publishing first.
- if( post->categories().count()>1 ){
+ if( !post->categories().isEmpty() ){
post->setPrivate( true );
if ( d->mSilentCreationList.contains( post ) ) {
kDebug()<< "Post already in mSilentCreationList, this *should* never happen!";
@@ -386,6 +386,7 @@
if ( rxId.cap( 1 ).toInt() == 1 ) {
kDebug() << "Post successfully updated.";
if ( mSilentCreationList.contains( post ) ) {
+ post->setStatus( KBlog::BlogPost::Created );
emit q->createdPost( post );
mSilentCreationList.removeOne( post );
} else {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic