From 40bd3c8459f560dffa5e5620cf5c26f036e9e9ab Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 22 Feb 2021 16:04:02 +0100 Subject: [PATCH] Revert 7d2141355cc00e32 --- src/SalomeApp/SalomeApp_ListView.cxx | 4 ++-- src/Session/SALOME_Session_Server.cxx | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/SalomeApp/SalomeApp_ListView.cxx b/src/SalomeApp/SalomeApp_ListView.cxx index 112ccd090..62bc4aa40 100644 --- a/src/SalomeApp/SalomeApp_ListView.cxx +++ b/src/SalomeApp/SalomeApp_ListView.cxx @@ -1110,7 +1110,7 @@ myCancelBtn(0) QPixmap anIcon; if( mgr ) - anIcon = mgr->loadPixmap( "SalomeAppSL", tr( "ICON_APPLY" ), false ); + anIcon = mgr->loadPixmap( "SalomeApp", tr( "ICON_APPLY" ), false ); myApplyBtn->setIcon(anIcon); myApplyBtn->setEnabled(false); @@ -1125,7 +1125,7 @@ myCancelBtn(0) myCancelBtn = new QToolButton(this); QPixmap anIcon; if( mgr ) - anIcon = mgr->loadPixmap( "SalomeAppSL", tr( "ICON_CANCEL" ), false ); + anIcon = mgr->loadPixmap( "SalomeApp", tr( "ICON_CANCEL" ), false ); myCancelBtn->setIcon(anIcon); myCancelBtn->setEnabled(false); myCancelBtn->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 75d582ce6..1ba5dad6f 100644 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -149,7 +149,7 @@ namespace class ResourceMgr : public SUIT_ResourceMgr { public: - ResourceMgr(const QString &appName = "SalomeAppSL") : SUIT_ResourceMgr(appName, "%1Config") + ResourceMgr(const QString &appName = "SalomeApp") : SUIT_ResourceMgr(appName, "%1Config") { customize(); // activate customization setCurrentFormat("xml"); @@ -167,7 +167,7 @@ namespace // This procedure is supposed to be done only once, at first call. if (myCustomAppName.isNull()) { - SUIT_ResourceMgr mgr("SalomeAppSL", "%1Config"); + SUIT_ResourceMgr mgr("SalomeApp", "%1Config"); mgr.setCurrentFormat("xml"); mgr.setWorkingMode(IgnoreUserValues); // prevent reading data from user's file mgr.loadLanguage("LightApp", "en"); @@ -461,8 +461,8 @@ int AbstractGUIAppMain(int argc, char **argv) QApplication::setOrganizationName("salome"); QApplication::setApplicationName("salome"); QApplication::setApplicationVersion(salomeVersion()); - int vvvv(90); - std::cin >> vvvv; + //int vvvv(90); + //std::cin >> vvvv; // Install Qt debug messages handler MsgHandler msgHandler; qInstallMessageHandler(QtxMsgHandler); @@ -494,11 +494,11 @@ int AbstractGUIAppMain(int argc, char **argv) ResourceMgr resMgr; resMgr.setWorkingMode(ResourceMgr::IgnoreUserValues); resMgr.loadLanguage("LightApp", "en"); - resMgr.loadLanguage(NamingServiceImplementation::LibName, "en"); + resMgr.loadLanguage("SalomeApp", "en"); resMgr.loadLanguage("Session"); // Set-up application settings configuration possible customized via resources - //if (resMgr.customName() != NamingServiceImplementation::LibName) + if (resMgr.customName() != "SalomeApp") { QApplication::setApplicationName(resMgr.customName()); QApplication::setApplicationVersion(resMgr.version()); -- 2.39.2