diff options
| author | Tannin <devnull@localhost> | 2014-11-06 00:07:06 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-11-06 00:07:06 +0100 |
| commit | 10cc56608135b5ca0454b7515f6e7d90f4eb7b92 (patch) | |
| tree | 8b4f79a40ac6b4e2d0e4202b88875f44986785a8 /src/downloadmanager.cpp | |
| parent | 53d1f3e00e8f2cfc8f2d715b4bbbf0309dcb8947 (diff) | |
| parent | df0bd3331a4b2174f99117c5a6f21ff6bddca1ba (diff) | |
Merge
Diffstat (limited to 'src/downloadmanager.cpp')
| -rw-r--r-- | src/downloadmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 28605409..b803d170 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -608,7 +608,7 @@ void DownloadManager::pauseDownload(int index) DownloadInfo *info = m_ActiveDownloads.at(index);
if (info->m_State == STATE_DOWNLOADING) {
- if (info->m_Reply->isRunning()) {
+ if ((info->m_Reply != NULL) && (info->m_Reply->isRunning())) {
setState(info, STATE_PAUSING);
} else {
setState(info, STATE_PAUSED);
|
