disconnected is specific to Sockets, abouTtoClose is generic to IODevice
This commit is contained in:
parent
fbbaa854b2
commit
07773b8141
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue