summaryrefslogtreecommitdiff
path: root/src/tabwindow
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabwindow')
-rw-r--r--src/tabwindow/tabhighlighteffect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tabwindow/tabhighlighteffect.cpp b/src/tabwindow/tabhighlighteffect.cpp
index 121afd15..3913deca 100644
--- a/src/tabwindow/tabhighlighteffect.cpp
+++ b/src/tabwindow/tabhighlighteffect.cpp
@@ -89,7 +89,7 @@ bool TabHighlightEffect::event(QEvent* event)
{
QDynamicPropertyChangeEvent *pChangeEv = dynamic_cast<QDynamicPropertyChangeEvent*>(event);
- if (pChangeEv->propertyName().startsWith(prep))
+ if (pChangeEv && pChangeEv->propertyName().startsWith(prep))
{
update();
return true;