disconnected is specific to Sockets, abouTtoClose is generic to IODevice

This commit is contained in:
Albert Vaca 2015-04-04 19:04:11 -07:00
parent fbbaa854b2
commit 07773b8141

View file

@ -109,7 +109,7 @@ void FileTransferJob::open(KIO::Job* job)
Q_ASSERT(mOrigin->isOpen()); Q_ASSERT(mOrigin->isOpen());
connect(mOrigin.data(), SIGNAL(readyRead()),this, SLOT(readyRead())); connect(mOrigin.data(), SIGNAL(readyRead()),this, SLOT(readyRead()));
connect(mOrigin.data(), SIGNAL(disconnected()),this, SLOT(sourceFinished())); connect(mOrigin.data(), SIGNAL(aboutToClose()),this, SLOT(sourceFinished()));
if (mOrigin->bytesAvailable() > 0) readyRead(); if (mOrigin->bytesAvailable() > 0) readyRead();
} }