xmlMap = getXmlMap();
if ( !curPlatform.isEmpty() ) {
// try to get XML file for current platform
- if ( xmlMap.find( curPlatform ) != xmlMap.end() )
+ if ( xmlMap.find( curPlatform ) != xmlMap.end() ) {
xmlFileName = xmlMap[ curPlatform ];
+ QFileInfo fibp( QDir::cleanDirPath( getBinPath() + "/" + getPlatform() ) );
+ if ( !fibp.isDir() ) {
+ platformsMap = xmlMap;
+ warnMsg = tr( "Binaries are absent for current platform" );
+ }
+ }
else {
platformsMap = xmlMap;
warnMsg = tr( "Your Linux platform is not supported by this SALOME package" );
QWidget* aPage = InstallWizard::page( pageTitle );
if ( aPage == typePage ) {
// installation type page
+ this->setAppropriate( platformsPage, false );
if ( installType == Binaries ) { // 'Binary' installation type
// check binaries directory
QFileInfo fib( QDir::cleanDirPath( getBinPath() ) );
QMessageBox::warning( this,
tr( "Warning" ),
tr( "The directory %1 doesn't exist.\n"
- "This directory must contain sources archives.\n").arg( fib.absFilePath() ),
+ "This directory must contains another one directory with binary archives for current platform.").arg( fib.absFilePath() ),
QMessageBox::Ok,
QMessageBox::NoButton,
QMessageBox::NoButton );
return false;
}
+ QFileInfo fibp( QDir::cleanDirPath( getBinPath() + "/" + getPlatform() ) );
+ if ( !fibp.isDir() )
+ this->setAppropriate( platformsPage, true );
// check sources directory
QFileInfo fis( QDir::cleanDirPath( getSrcPath() ) );
if ( !fis.exists() )
if ( QMessageBox::warning( this,
tr( "Warning" ),
tr( "The directory %1 doesn't exist.\n"
- "This directory must contain sources archives.\n"
+ "This directory must contains sources archives.\n"
"Continue?" ).arg( fis.absFilePath() ),
tr( "&Yes" ),
tr( "&No" ),
QMessageBox::warning( this,
tr( "Warning" ),
tr( "The directory %1 doesn't exist.\n"
- "This directory must contain sources archives.\n" ).arg( fis.absFilePath() ),
+ "This directory must contains sources archives.\n" ).arg( fis.absFilePath() ),
QMessageBox::Ok,
QMessageBox::NoButton,
QMessageBox::NoButton );
if ( !fi.isWritable() ) {
QMessageBox::warning( this,
tr( "Warning" ),
- tr( "The directory %1 is not writeable.\n"
+ tr( "The directory %1 is not writable.\n"
"Please, enter valid target directory path or change permissions" ).arg( fi.absFilePath() ),
QMessageBox::Ok,
QMessageBox::NoButton,
}
else if ( aPage == dirPage ) {
// installation and temporary directories page
- if ( ( indexOf( platformsPage ) != -1 ?
+ if ( ( ( this->indexOf( platformsPage ) != -1 && this->appropriate( platformsPage ) ) ?
previousPage == platformsPage : previousPage == typePage )
&& stateChanged ) {
// clear global variables before reading XML file