X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_HelpWindow.cxx;h=3593a61c2e2ce24a7f8811d1d21978c2a7f29ad0;hb=260bf6b42efe9e30501c4e6e99b013da3fe34f77;hp=83d8b3a390e16d2d1f90cca2690143bab0b03260;hpb=9fc2bfc009ddf32fb0f20cfcf7151b79aec3f62d;p=tools%2Finstall.git diff --git a/src/SALOME_HelpWindow.cxx b/src/SALOME_HelpWindow.cxx index 83d8b3a..3593a61 100644 --- a/src/SALOME_HelpWindow.cxx +++ b/src/SALOME_HelpWindow.cxx @@ -3,7 +3,7 @@ // Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) // Project : SALOME // Module : Installation Wizard -// Copyright : 2002-2007 CEA +// Copyright : 2002-2010 CEA #include "SALOME_HelpWindow.hxx" #include "SALOME_InstallWizard.hxx" @@ -31,7 +31,7 @@ // ================================================================ HelpWindow::HelpWindow( SALOME_InstallWizard* wizard ) : QMainWindow( 0, "SalomeProHelpWindow", WDestructiveClose ) { - QString hlpFile = QDir::currentDirPath() + "/doc/readme.html"; + QString hlpFile = QDir( SALOME_InstallWizard::rootDirPath() ).filePath( "doc/readme.html" ); QString hlpDir = "."; // caption setCaption( wizard->getCaption() + " " + wizard->getIWName() + " " + tr( "Help" ) ); @@ -149,7 +149,7 @@ void HelpWindow::keyPressEvent( QKeyEvent* e ) // ================================================================ HelpWindow* HelpWindow::openHelp( SALOME_InstallWizard* wizard ) { - if ( QFile::exists( QDir::currentDirPath() + "/doc/readme.html" ) ) + if ( QFile::exists( QDir( SALOME_InstallWizard::rootDirPath() ).filePath( "doc/readme.html" ) ) ) return new HelpWindow( wizard ); else return 0;