]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
MPV: remove "TRIPOLI" name of the variable for license file location TRIPOLI_302
authormpv <mpv@opencascade.com>
Wed, 10 Nov 2010 15:02:20 +0000 (15:02 +0000)
committermpv <mpv@opencascade.com>
Wed, 10 Nov 2010 15:02:20 +0000 (15:02 +0000)
src/SUIT/SUIT_LicenseDlg.cxx

index fee356fa5a2f9d6dba96c1fd0a7ec28940db0a78..77b01f9a68dc100f87eef059bac98cde4f486700 100755 (executable)
@@ -48,10 +48,10 @@ SUIT_LicenseDlg::SUIT_LicenseDlg( bool firstShow, QWidget* parent, const char* n
   setObjectName( name );
   setModal( modal );
   QString env;
-  if ( ::getenv( "TRIPOLI_ROOT_DIR" ) )
-    env = ::getenv( "TRIPOLI_ROOT_DIR" );
+  if ( ::getenv( "SALOME_LICENSE_FILE" ) )
+    env = ::getenv( "SALOME_LICENSE_FILE" );
  
-  QFile file( env + "/share/salome/resources/tripoli/License.txt" ); // Read the text from a file
+  QFile file( env ); // Read the text from a file
   
   if ( !file.exists() || !file.open( QIODevice::ReadOnly ) )
     return;