diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-01-14 22:21:53 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-01-14 22:21:53 +0100 |
commit | a3e2208ae3b2190b3f176a7cf52d65bb4d42d82d (patch) | |
tree | 3fcd2e8365a0b2d0f75635fd0a2c36a5469c38f3 /src/tabwindow | |
parent | Prevent uglyfying URL in suggest list (diff) | |
download | rekonq-a3e2208ae3b2190b3f176a7cf52d65bb4d42d82d.tar.xz |
Coverity report fixes
A potential crash (dynamic_cast maybe null)
Some break usage clean up
minor string speed up by using QLatin1String
Diffstat (limited to 'src/tabwindow')
-rw-r--r-- | src/tabwindow/tabhighlighteffect.cpp | 2 |
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; |