[telepathy-qt4/master] PendingOperation: Fixed debug when trying to finish a PendingOperation already finished.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue Jul 21 10:02:36 PDT 2009
---
TelepathyQt4/pending-operation.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/TelepathyQt4/pending-operation.cpp b/TelepathyQt4/pending-operation.cpp
index 62acccc..1b67fed 100644
--- a/TelepathyQt4/pending-operation.cpp
+++ b/TelepathyQt4/pending-operation.cpp
@@ -114,9 +114,9 @@ void PendingOperation::emitFinished()
void PendingOperation::setFinished()
{
if (mPriv->finished) {
- if (mPriv->errorName.isEmpty()) {
+ if (!mPriv->errorName.isEmpty()) {
warning() << this << "trying to finish with success, but already"
- " failed with" << errorName() << ":" << errorMessage();
+ " failed with" << mPriv->errorName << ":" << mPriv->errorMessage;
} else {
warning() << this << "trying to finish with success, but already"
" succeeded";
--
1.5.6.5
More information about the telepathy-commits
mailing list