[telepathy-qt4/master] IncomingFileTransferChannel: Invalidate channel if AcceptFile fails.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Tue Sep 22 18:47:57 PDT 2009


---
 TelepathyQt4/incoming-file-transfer-channel.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/incoming-file-transfer-channel.cpp b/TelepathyQt4/incoming-file-transfer-channel.cpp
index 1628824..37c5546 100644
--- a/TelepathyQt4/incoming-file-transfer-channel.cpp
+++ b/TelepathyQt4/incoming-file-transfer-channel.cpp
@@ -180,6 +180,7 @@ void IncomingFileTransferChannel::onAcceptFileFinished(PendingOperation *op)
     if (op->isError()) {
         warning() << "Error accepting file transfer " <<
             op->errorName() << ":" << op->errorMessage();
+        invalidate(op->errorName(), op->errorMessage());
         return;
     }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list