From: nri Date: Wed, 28 May 2003 08:55:22 +0000 (+0000) Subject: NRI : Check if a component-username is already associated with a component-name. X-Git-Tag: V1_4_0~89 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6025f2b5eac7cc013fca722a84f979e4f9c9cb5;p=modules%2Fkernel.git NRI : Check if a component-username is already associated with a component-name. --- diff --git a/src/SALOMEGUI/QAD_Desktop.cxx b/src/SALOMEGUI/QAD_Desktop.cxx index 049b5882d..1f1120c3f 100644 --- a/src/SALOMEGUI/QAD_Desktop.cxx +++ b/src/SALOMEGUI/QAD_Desktop.cxx @@ -253,6 +253,10 @@ myQueryClose( true ) MESSAGE ( " MODULE icon = " << iconfile ) MESSAGE ( " MODULE username = " << moduleusername ) + if ( mapComponentName.contains( moduleusername ) ) { + QMessageBox::warning( this, tr("WRN_WARNING"), QString( moduleusername + " is already associated with " + mapComponentName[moduleusername] + ".\nPlease, change the component username of " + modulename) , tr ("BUT_OK") ); + continue; + } mapComponentName.insert( moduleusername, modulename ); resDir = resMgr->findFile(iconfile,modulename) ;