From d6025f2b5eac7cc013fca722a84f979e4f9c9cb5 Mon Sep 17 00:00:00 2001 From: nri Date: Wed, 28 May 2003 08:55:22 +0000 Subject: [PATCH] NRI : Check if a component-username is already associated with a component-name. --- src/SALOMEGUI/QAD_Desktop.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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) ; -- 2.39.2