From bf0db9c218edde72750426e2fb273359497db5bb Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 25 Aug 2013 13:15:23 +0200 Subject: - 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 --- src/downloadlistwidgetcompact.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/downloadlistwidgetcompact.cpp') 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)); } -- cgit v1.3.1