diff options
Diffstat (limited to 'kommander/widgets/closebutton.cpp')
-rw-r--r-- | kommander/widgets/closebutton.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kommander/widgets/closebutton.cpp b/kommander/widgets/closebutton.cpp index a8892d13..af6c5561 100644 --- a/kommander/widgets/closebutton.cpp +++ b/kommander/widgets/closebutton.cpp @@ -41,14 +41,14 @@ CloseButton::CloseButton(TQWidget* a_parent, const char* a_name) connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(startProcess())); - TQObject *tqparent = TQT_TQOBJECT(this); - while (tqparent->tqparent() != 0) + TQObject *parent = TQT_TQOBJECT(this); + while (parent->parent() != 0) { - tqparent = tqparent->tqparent(); - if (tqparent->inherits(TQDIALOG_OBJECT_NAME_STRING)) + parent = parent->parent(); + if (parent->inherits(TQDIALOG_OBJECT_NAME_STRING)) break; } - connect(this, TQT_SIGNAL(clicked()), tqparent, TQT_SLOT(reject())); + connect(this, TQT_SIGNAL(clicked()), parent, TQT_SLOT(reject())); } CloseButton::~CloseButton() |