]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
creation of accelerator is changed, now it is done through getAccel() static function.
authorasv <asv@opencascade.com>
Thu, 9 Mar 2006 14:17:55 +0000 (14:17 +0000)
committerasv <asv@opencascade.com>
Thu, 9 Mar 2006 14:17:55 +0000 (14:17 +0000)
src/LightApp/LightApp_Application.cxx

index 7a055b9a44256b2f0f5d68b0c0cad85bdf30d82a..28f528334b3df8a66bc9c1d7caef83c2bccde566 100644 (file)
@@ -173,7 +173,8 @@ myPrefs( 0 )
 
   mySelMgr = new LightApp_SelectionMgr( this );
 
-  myAccel = new SUIT_Accel( desktop() );
+  myAccel = SUIT_Accel::getAccel();
+
 #ifndef DISABLE_OCCVIEWER
   myAccel->setActionKey( SUIT_Accel::PanLeft,     CTRL+Key_Left,     OCCViewer_Viewer::Type() );
   myAccel->setActionKey( SUIT_Accel::PanRight,    CTRL+Key_Right,    OCCViewer_Viewer::Type() );
@@ -1427,7 +1428,7 @@ QWidget* LightApp_Application::createWindow( const int flag )
   {
     OB_Browser* ob = new OB_Browser( desktop() );
     ob->setAutoUpdate( true );
-    ob->setAutoOpenLevel( 1 );
+    //ob->setAutoOpenLevel( 1 ); // commented by ASV as a fix to bug IPAL10107
     ob->setCaption( tr( "OBJECT_BROWSER" ) );
 
     OB_ListView* ob_list = dynamic_cast<OB_ListView*>( const_cast<QListView*>( ob->listView() ) );