From: akl Date: Mon, 10 Sep 2007 07:59:52 +0000 (+0000) Subject: To show Warning message if user didn't select any platform. X-Git-Tag: IMP_BR_4~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cb7ca2136e68d796ecd6dbfa52f10946a6d6eca5;p=tools%2Finstall.git To show Warning message if user didn't select any platform. --- diff --git a/src/SALOME_InstallWizard.cxx b/src/SALOME_InstallWizard.cxx index 403011e..195aae9 100644 --- a/src/SALOME_InstallWizard.cxx +++ b/src/SALOME_InstallWizard.cxx @@ -1392,8 +1392,21 @@ bool SALOME_InstallWizard::acceptData( const QString& pageTitle ) } } - else if ( aPage == dirPage ) { + else if ( aPage == platformsPage ) { // installation platform page + if ( platBtnGrp->id( platBtnGrp->selected() ) == -1 ) { + QMessageBox::warning( this, + tr( "Warning" ), + tr( "Select installation platform before" ), + QMessageBox::Ok, + QMessageBox::NoButton, + QMessageBox::NoButton ); + return false; + } + } + + else if ( aPage == dirPage ) { + // installation directory page // ########## check target and temp directories (existence and available disk space) // get dirs QString targetDir = QDir::cleanDirPath( targetFolder->text().stripWhiteSpace() );