summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
Diffstat (limited to 'style')
-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))