comparison data/fileio/RemoteFile.cpp @ 287:557e00480279

* Fix #1755108 end of file not clearly shown and #1754808 crash when trying to retrieve remote file from absent server
author Chris Cannam
date Mon, 13 Aug 2007 14:51:35 +0000
parents 7802b0e2b0ff
children 4fc6f49436b3
comparison
equal deleted inserted replaced
286:20097c32d15d 287:557e00480279
162 } 162 }
163 163
164 void 164 void
165 RemoteFile::cleanup() 165 RemoteFile::cleanup()
166 { 166 {
167 // std::cerr << "RemoteFile::cleanup" << std::endl;
168 m_done = true; 167 m_done = true;
169 if (m_http) { 168 if (m_http) {
170 delete m_http; 169 QHttp *h = m_http;
171 m_http = 0; 170 m_http = 0;
171 h->abort();
172 h->deleteLater();
172 } 173 }
173 if (m_ftp) { 174 if (m_ftp) {
174 m_ftp->abort(); 175 QFtp *f = m_ftp;
175 m_ftp->deleteLater();
176 m_ftp = 0; 176 m_ftp = 0;
177 f->abort();
178 f->deleteLater();
177 } 179 }
178 delete m_progressDialog; 180 delete m_progressDialog;
179 m_progressDialog = 0; 181 m_progressDialog = 0;
180 delete m_localFile; 182 delete m_localFile;
181 m_localFile = 0; 183 m_localFile = 0;