summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-03-22 11:58:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-22 12:00:51 +0900
commit8a2ee95b7119397c1d2f680b478ba8bb2dde7ac0 (patch)
treead3473467340d45d4f3649ea3ad99ad56b06cdf4
parent3b55534c645c7ae98ab86eb5f5f372c660547699 (diff)
downloadtde-style-polyester-8a2ee95b7119397c1d2f680b478ba8bb2dde7ac0.tar.gz
tde-style-polyester-8a2ee95b7119397c1d2f680b478ba8bb2dde7ac0.zip
Fix SEGV caused by null parent widget. This solves issue #2.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rwxr-xr-xstyle/polyester.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/style/polyester.cpp b/style/polyester.cpp
index 7fe513d..95ac235 100755
--- a/style/polyester.cpp
+++ b/style/polyester.cpp
@@ -4620,7 +4620,7 @@ bool PolyesterStyle::eventFilter(TQObject *obj, TQEvent *ev)
if ( obj->inherits("TQLineEdit") ) {
TQWidget* widget = static_cast<TQWidget*>(obj);
- if ( widget->parentWidget()->inherits("TQSpinWidget") )
+ if ( widget->parentWidget() && widget->parentWidget()->inherits("TQSpinWidget") )
{
TQWidget* spinbox = widget->parentWidget();
if ((ev->type() == TQEvent::FocusIn) || (ev->type() == TQEvent::FocusOut))