diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-22 11:58:14 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-22 12:00:51 +0900 |
commit | 8a2ee95b7119397c1d2f680b478ba8bb2dde7ac0 (patch) | |
tree | ad3473467340d45d4f3649ea3ad99ad56b06cdf4 | |
parent | 3b55534c645c7ae98ab86eb5f5f372c660547699 (diff) | |
download | tde-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-x | style/polyester.cpp | 2 |
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)) |