Salome HOME
Upgrade to paraview 5.4
[modules/gui.git] / src / SUIT / SUIT_DataBrowser.cxx
index 99adcc0cdf1afb5168e9cdc4b436184d7c22e7de..c52494f117367eb0b607120998481d5a15f35bc8 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -155,6 +155,7 @@ void SUIT_DataBrowser::updateTree( SUIT_DataObject* obj, const bool autoOpen )
     if (myAutoSizeColumns)
       adjustColumnsWidth();
   }
+  emit updated();
 }
 
 /*!
@@ -164,7 +165,7 @@ void SUIT_DataBrowser::updateTree( SUIT_DataObject* obj, const bool autoOpen )
 */
 int SUIT_DataBrowser::shortcutKey(const int id) const
 {
-  return myShortcutMap.value(id)->key();
+  return myShortcutMap.value(id)->key()[0];
 }
 
 /*!
@@ -176,7 +177,7 @@ int SUIT_DataBrowser::shortcutKey(const int id) const
 */
 void SUIT_DataBrowser::setShortcutKey( const int id, const int key )
 { 
-  ShortcutMap::iterator it = myShortcutMap.find( key );
+  ShortcutMap::iterator it = myShortcutMap.find( id );
   if( it != myShortcutMap.end() )
     (*it)->setKey(key);
 }