From: jfa Date: Mon, 20 Feb 2006 12:11:49 +0000 (+0000) Subject: PAL11563: Naming Policy. Suppress blank group names. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a5dbe4347a3ac7ae1f14038d165bbf02103f2c8;p=modules%2Fgeom.git PAL11563: Naming Policy. Suppress blank group names. --- diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 7dfa08243..84f5db220 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -661,8 +661,8 @@ bool GroupGUI_GroupDlg::isValid( QString& theMessage ) RETURN_WITH_MSG( !CORBA::is_nil( myMainObj ), tr( "NO_GROUP" ) ) } - const char* aName = getNewObjectName(); - RETURN_WITH_MSG ( aName && strlen( aName ), tr( "EMPTY_NAME" ) ) + QString aName (getNewObjectName()); + RETURN_WITH_MSG ( !aName.stripWhiteSpace().isEmpty(), tr( "EMPTY_NAME" ) ) RETURN_WITH_MSG ( myIdList->count(), tr( "EMPTY_LIST" ) ) return true;