summaryrefslogtreecommitdiff
path: root/src/downloadlistwidgetcompact.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-08-25 13:15:23 +0200
committerTannin <devnull@localhost>2013-08-25 13:15:23 +0200
commitbf0db9c218edde72750426e2fb273359497db5bb (patch)
treeaaf1c7370fcbd8621f6e2e0e637ec5248eda2e3e /src/downloadlistwidgetcompact.cpp
parent8fcf21e771487c9457d62b1541bf29b06f268079 (diff)
- position of splitter in main window is now saved and restored
- confirmation dialog before enabling/disabling all plugins - bugfix: GetPrivateProfileString-hook potentially accessed buffer that is allowed to be NULL - bugfix: attempt to extract an archive crashed MO in 0.99.2 - bugfix: archive list wasn't saved correctly in 0.99.2 - bugfix: plugins.txt was incorrectly interpreted as utf-8
Diffstat (limited to 'src/downloadlistwidgetcompact.cpp')
-rw-r--r--src/downloadlistwidgetcompact.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloadlistwidgetcompact.cpp b/src/downloadlistwidgetcompact.cpp
index f3e395da..0cbdd0b1 100644
--- a/src/downloadlistwidgetcompact.cpp
+++ b/src/downloadlistwidgetcompact.cpp
@@ -110,7 +110,7 @@ void DownloadListWidgetCompactDelegate::paint(QPainter *painter, const QStyleOpt
DownloadManager::DownloadState state = m_Manager->getState(downloadIndex);
- if (state >= DownloadManager::STATE_READY) {
+ if ((m_SizeLabel != NULL) && (state >= DownloadManager::STATE_READY)) {
m_SizeLabel->setText(QString::number(m_Manager->getFileSize(downloadIndex) / 1048576));
}