emailuis/nmailui/src/nmeditortextdocument.cpp
changeset 54 997a02608b3a
parent 30 759dc5235cdb
equal deleted inserted replaced
53:bf7eb7911fc5 54:997a02608b3a
    65             if(image.loadFromData(reply->readAll())) { 
    65             if(image.loadFromData(reply->readAll())) { 
    66                 addResource(QTextDocument::ImageResource, reply->url(), QVariant(image));
    66                 addResource(QTextDocument::ImageResource, reply->url(), QVariant(image));
    67                 emit documentLayoutChanged();
    67                 emit documentLayoutChanged();
    68             }
    68             }
    69         }
    69         }
    70         mReplyList.removeAll(reply);
    70         // If this has created the request, then this needs to handle deletion also.
    71         reply->deleteLater();
    71         if (mReplyList.removeAll(reply)) {
       
    72             reply->deleteLater();
       
    73         }
    72     }
    74     }
    73 }
    75 }
    74 
    76 
    75 /*!
    77 /*!
    76     loadResource. Starts fetching image from given URL.
    78     loadResource. Starts fetching image from given URL.