From 87b64d2f38110438cc252f4058cc8b7b5ef1cc05 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 23 Mar 2012 08:07:28 +0000 Subject: [PATCH] Fix crash that occurs on Ctrl-Tab pressing in the dialog box with child tab widget (stack overflow). --- src/Qtx/QtxDialog.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Qtx/QtxDialog.cxx b/src/Qtx/QtxDialog.cxx index 2c2e76b63..c5cbe4929 100755 --- a/src/Qtx/QtxDialog.cxx +++ b/src/Qtx/QtxDialog.cxx @@ -1328,8 +1328,11 @@ void QtxDialog::keyPressEvent( QKeyEvent* e ) if ( e->key() == Qt::Key_Tab && e->modifiers() & Qt::ControlModifier ) { QObject* tab = qFindChild( this ); - if ( tab ) + if ( tab && !property( "in_tab_event" ).toBool() ) { + setProperty( "in_tab_event", true ); QApplication::sendEvent( tab, e ); + setProperty( "in_tab_event", false ); + } } } -- 2.39.2