summaryrefslogtreecommitdiff
path: root/src/tabpreviewpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabpreviewpopup.cpp')
-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();
}