From: Christophe Bourcier Date: Thu, 1 Aug 2019 08:43:53 +0000 (+0200) Subject: Do not disallow edition, otherwise we can't expand group items (e.g. vertices) when... X-Git-Tag: V9_4_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8b9a300c479c853b0fcd71e63dae6bbe54b5cf65;p=modules%2Fhexablock.git 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) --- diff --git a/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentPanel.cxx b/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentPanel.cxx index 1fb2d7e..38e5d7e 100644 --- a/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentPanel.cxx +++ b/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentPanel.cxx @@ -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)