mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-21 21:55:15 -05:00
Integrated turtle download to all kind of user-requested downloads
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1625 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
64a06fd0bb
commit
95a577ccd0
@ -899,7 +899,6 @@ bool ftController::FileCancel(std::string hash)
|
||||
}
|
||||
|
||||
mDownloads.erase(mit);
|
||||
mTurtle->stopMonitoringFileTunnels(hash) ;
|
||||
|
||||
IndicateConfigChanged(); /* completed transfer -> save */
|
||||
return true;
|
||||
|
@ -251,11 +251,15 @@ bool ftServer::FileRequest(std::string fname, std::string hash, uint64_t size,
|
||||
const DwlDetails details(fname, hash, size, dest, flags, srcIds, Normal);
|
||||
mFtDwlQueue->insertDownload(details);
|
||||
|
||||
rsTurtle->monitorFileTunnels( fname,hash,size ) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
bool ftServer::FileCancel(std::string hash)
|
||||
{
|
||||
rsTurtle->stopMonitoringFileTunnels(hash) ;
|
||||
|
||||
return mFtController->FileCancel(hash);
|
||||
}
|
||||
|
||||
|
@ -1005,7 +1005,7 @@ void TransfersDialog::pasteLink()
|
||||
//downloadFileRequested(linkData.getName (), linkData.getSize ().toInt (),
|
||||
// linkData.getHash (), "", -1, -1, -1, -1);
|
||||
rsFiles->FileRequest (linkData.getName ().toStdString (), linkData.getHash ().toStdString (),
|
||||
linkData.getSize ().toInt (), "", 0, srcIds);
|
||||
linkData.getSize().toULongLong(), "", 0, srcIds);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user