]> SALOME platform Git repositories - modules/hexablock.git/commitdiff
Salome HOME
Do not disallow edition, otherwise we can't expand group items (e.g. vertices) when...
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Thu, 1 Aug 2019 08:43:53 +0000 (10:43 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Thu, 1 Aug 2019 08:43:53 +0000 (10:43 +0200)
src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentPanel.cxx

index 1fb2d7e98a17a923c1a845d6588d5866fb9bd385..38e5d7ed72475089656897dfd1b353c8efb575a7 100644 (file)
@@ -797,10 +797,13 @@ void HexaBaseDialog::onSelectionChanged( const QItemSelection& sel, const QItemS
 // ============================================================== showEvent
 void HexaBaseDialog::showEvent( QShowEvent * event )
 {
-    if ( _editMode == INFO_MODE )
-        getDocumentModel()->allowEdition();
-    else
-        getDocumentModel()->disallowEdition();
+    // Do not disallow edition, otherwise we can't expand group items
+    // (e.g. vertices) when creating an item (e.g. a vertex or an edge).
+    // Hence, no need to allow edition in info mode.
+    //if ( _editMode == INFO_MODE )
+    //    getDocumentModel()->allowEdition();
+    //else
+    //    getDocumentModel()->disallowEdition();
 
     //Connect to salome selection signals
     if (HEXABLOCKGUI::selectionMgr() != NULL)