diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-10-01 17:20:49 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-10-01 17:20:49 +0200 |
commit | 35329c2c6409f22510d3fcf0acd2c6d23c6becd7 (patch) | |
tree | df37681e45175f7fa061a8c73f450dc25d2b5eed | |
parent | Check if URL is Valid Before Checking if it's about: Protocol (diff) | |
download | rekonq-35329c2c6409f22510d3fcf0acd2c6d23c6becd7.tar.xz |
Get sure label pixmap exists
BUG: 307559
-rw-r--r-- | src/tabpreviewpopup.cpp | 5 |
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(); } |