From: vsr Date: Fri, 23 Mar 2012 08:07:28 +0000 (+0000) Subject: Fix crash that occurs on Ctrl-Tab pressing in the dialog box with child tab widget... X-Git-Tag: V6_5_0a1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=87b64d2f38110438cc252f4058cc8b7b5ef1cc05;p=modules%2Fgui.git Fix crash that occurs on Ctrl-Tab pressing in the dialog box with child tab widget (stack overflow). --- 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 ); + } } }