From 8b9a300c479c853b0fcd71e63dae6bbe54b5cf65 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Thu, 1 Aug 2019 10:43:53 +0200 Subject: [PATCH] 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) --- src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentPanel.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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) -- 2.39.2