src/download.cpp

changeset 504
6a1fa662bfc1
parent 503
bebe09014dd6
child 513
29eb671b34f6
equal deleted inserted replaced
503:bebe09014dd6 504:6a1fa662bfc1
186 // ============================================================================= 186 // =============================================================================
187 // ----------------------------------------------------------------------------- 187 // -----------------------------------------------------------------------------
188 void PartDownloader::buttonClicked (QAbstractButton* btn) 188 void PartDownloader::buttonClicked (QAbstractButton* btn)
189 { if (btn == getButton (Close)) 189 { if (btn == getButton (Close))
190 { reject(); 190 { reject();
191 } elif (btn == getButton (Abort)) 191 }
192 192 elif (btn == getButton (Abort))
193 { setAborted (true); 193 { setAborted (true);
194 194
195 for (PartDownloadRequest * req : m_requests) 195 for (PartDownloadRequest* req : m_requests)
196 req->abort(); 196 req->abort();
197 } elif (btn == getButton (Download)) 197 }
198 elif (btn == getButton (Download))
198 { str dest = ui->fname->text(); 199 { str dest = ui->fname->text();
199 setPrimaryFile (null); 200 setPrimaryFile (null);
200 setAborted (false); 201 setAborted (false);
201 202
202 if (getSource() == CustomURL) 203 if (getSource() == CustomURL)

mercurial