summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-10-01 17:20:49 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-10-01 17:20:49 +0200
commit35329c2c6409f22510d3fcf0acd2c6d23c6becd7 (patch)
treedf37681e45175f7fa061a8c73f450dc25d2b5eed
parentCheck if URL is Valid Before Checking if it's about: Protocol (diff)
downloadrekonq-35329c2c6409f22510d3fcf0acd2c6d23c6becd7.tar.xz
Get sure label pixmap exists
BUG: 307559
-rw-r--r--src/tabpreviewpopup.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabpreviewpopup.cpp b/src/tabpreviewpopup.cpp
index 92809abc..a0311975 100644
--- a/src/tabpreviewpopup.cpp
+++ b/src/tabpreviewpopup.cpp
@@ -95,7 +95,10 @@ TabPreviewPopup::~TabPreviewPopup()
QSize TabPreviewPopup::thumbnailSize() const
{
- return m_thumbnail->pixmap()->size();
+ if (m_thumbnail->pixmap())
+ return m_thumbnail->pixmap()->size();
+
+ return QSize();
}