summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/dcctransfer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opieirc/dcctransfer.cpp b/noncore/net/opieirc/dcctransfer.cpp
index cfa9f74..e97d191 100644
--- a/noncore/net/opieirc/dcctransfer.cpp
+++ b/noncore/net/opieirc/dcctransfer.cpp
@@ -8,34 +8,34 @@ DCCTransfer::DCCTransfer(Q_UINT32 ip4Addr, Q_UINT16 port, const QString &filenam
: m_socket(new QSocket), m_file(new QFile), m_bufSize(4096), m_buffer(new char[m_bufSize]),
m_ip4Addr(ip4Addr), m_port(port), m_totalSize(size), m_processedSize(0)
{
m_file->setName(filename);
}
DCCTransfer::~DCCTransfer()
{
if(m_socket)
delete m_socket;
if(m_file) {
m_file->close();
delete m_file;
}
if(m_buffer)
delete []m_buffer;
}
void DCCTransfer::cancel()
{
if(m_socket)
m_socket->close();
- emit(finished(DCCTransfer::SelfAborted));
+ emit(finished(this, DCCTransfer::SelfAborted));
}
QString DCCTransfer::filename()
{
if(!m_file)
return QString::null;
return m_file->name().mid(m_file->name().findRev('/') + 1);
}