dcDownloadRequest(): declare as const and set m_finished = true;
This commit is contained in:
		@@ -4381,7 +4381,7 @@ QObject const *hwapi::getAPI() {
 | 
			
		||||
    return this;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool hwapi::dcDownloadRequest(QString const &dcFileToDownload) {
 | 
			
		||||
bool hwapi::dcDownloadRequest(QString const &dcFileToDownload) const {
 | 
			
		||||
    SharedMem *data = SharedMem::getData();
 | 
			
		||||
    if (!data) {
 | 
			
		||||
        return false;
 | 
			
		||||
@@ -4398,8 +4398,8 @@ bool hwapi::dcDownloadRequest(QString const &dcFileToDownload) {
 | 
			
		||||
    data->m_downLoadDC.m_currentblockNumber = 0;
 | 
			
		||||
 | 
			
		||||
    data->m_downLoadDC.m_requested = true;
 | 
			
		||||
    data->m_downLoadDC.m_running = false;
 | 
			
		||||
    data->m_downLoadDC.m_finished = false;
 | 
			
		||||
    data->m_downLoadDC.m_running = false;   // download thread is not running
 | 
			
		||||
    data->m_downLoadDC.m_finished = true;
 | 
			
		||||
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user