-rw-r--r-- | libkcal/incidencebase.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index d7c4595..f1db8b7 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp @@ -387,4 +387,5 @@ void IncidenceBase::setID( const QString & prof , int id ) mExternalId += prof+";"+QString::number( id) +";0:"; } + qDebug("setID*%s*%d*%s* ", prof.latin1(), id,mExternalId.latin1() ); } int IncidenceBase::getID( const QString & prof) @@ -399,7 +400,8 @@ int IncidenceBase::getID( const QString & prof) ret = mExternalId.mid ( num + len,end-len-num).toInt( &ok ); if (!ok) - return -1; + ret = -1; } } + qDebug("getID*%s*%d*%s* ", prof.latin1(), ret,mExternalId.latin1() ); return ret; } @@ -421,4 +423,5 @@ void IncidenceBase::setCsum( const QString & prof , int id ) mExternalId += prof+";-1;"+QString::number( id) +":"; } + qDebug("setCsum*%s*%d*%s* ", prof.latin1(), id,mExternalId.latin1() ); } int IncidenceBase::getCsum( const QString & prof) @@ -434,7 +437,8 @@ int IncidenceBase::getCsum( const QString & prof) ret = mExternalId.mid ( num ,end-num).toInt( &ok ); if (!ok) - return -1; + ret = -1; } } + qDebug("getCsum*%s*%d*%s* ", prof.latin1(), ret,mExternalId.latin1() ); return ret; } |