| 1342 | } |
| 1343 | |
| 1344 | void DocumentData::cancel() { |
| 1345 | if (!loading()) { |
| 1346 | return; |
| 1347 | } |
| 1348 | |
| 1349 | _flags |= Flag::DownloadCancelled; |
| 1350 | destroyLoader(); |
| 1351 | _owner->documentLoadDone(this); |
| 1352 | } |
| 1353 | |
| 1354 | bool DocumentData::cancelled() const { |
| 1355 | return (_flags & Flag::DownloadCancelled); |
no test coverage detected