All pastes #931693 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-07 09:39 UTC
rendered paste body
Index: src/connection.cpp
===================================================================
--- src/connection.cpp  (revision 2083)
+++ src/connection.cpp  (working copy)
@@ -148,6 +148,7 @@
  */
 Connection::~Connection()
 {
+    qDebug() << "TapiocaQt: Connection::~Connection(): called.";
     delete d;
 }

@@ -400,7 +401,9 @@
                        static_cast<Connection::Reason>(reason));
     if (status == Disconnected) {
         /* we are no longer valid */
-        deleteLater();
+       qDebug() << "QtTapioca: Connection::onStatusChanged(): deleteLater about to be called";
+      //  this->deleteLater();
+       qDebug() << "QtTapioca: Connection::onStatusChanged(): deleteLater has been called";
     }
 }

@@ -409,6 +412,7 @@
  */
 void Connection::onChannelDestroyed()
 {
+    qDebug() << "QtTapioca: Connection::onChannelDestroyey(): method called.";
     Channel *channel = static_cast<Channel *>(sender());
     d->channels.remove(channel->objectPath());
 }