]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix crash that occurs on Ctrl-Tab pressing in the dialog box with child tab widget...
authorvsr <vsr@opencascade.com>
Fri, 23 Mar 2012 08:07:28 +0000 (08:07 +0000)
committervsr <vsr@opencascade.com>
Fri, 23 Mar 2012 08:07:28 +0000 (08:07 +0000)
src/Qtx/QtxDialog.cxx

index 2c2e76b636e9e82145f0e621057677924e22995b..c5cbe49293d009d68e00bd0febfdc7f53d1931d7 100755 (executable)
@@ -1328,8 +1328,11 @@ void QtxDialog::keyPressEvent( QKeyEvent* e )
   if ( e->key() == Qt::Key_Tab && e->modifiers() & Qt::ControlModifier )
   {
     QObject* tab = qFindChild<QTabWidget*>( this );
-    if ( tab )
+    if ( tab && !property( "in_tab_event" ).toBool() ) {
+      setProperty( "in_tab_event", true );
       QApplication::sendEvent( tab, e );
+      setProperty( "in_tab_event", false );
+    }
   }
 }