mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-05-26 00:30:49 +05:00
PAL11563: Naming Policy. Suppress blank group names.
This commit is contained in:
parent
25187cb1d6
commit
3a5dbe4347
@ -661,8 +661,8 @@ bool GroupGUI_GroupDlg::isValid( QString& theMessage )
|
|||||||
RETURN_WITH_MSG( !CORBA::is_nil( myMainObj ), tr( "NO_GROUP" ) )
|
RETURN_WITH_MSG( !CORBA::is_nil( myMainObj ), tr( "NO_GROUP" ) )
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* aName = getNewObjectName();
|
QString aName (getNewObjectName());
|
||||||
RETURN_WITH_MSG ( aName && strlen( aName ), tr( "EMPTY_NAME" ) )
|
RETURN_WITH_MSG ( !aName.stripWhiteSpace().isEmpty(), tr( "EMPTY_NAME" ) )
|
||||||
|
|
||||||
RETURN_WITH_MSG ( myIdList->count(), tr( "EMPTY_LIST" ) )
|
RETURN_WITH_MSG ( myIdList->count(), tr( "EMPTY_LIST" ) )
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user