From cb7ca2136e68d796ecd6dbfa52f10946a6d6eca5 Mon Sep 17 00:00:00 2001 From: akl Date: Mon, 10 Sep 2007 07:59:52 +0000 Subject: [PATCH] To show Warning message if user didn't select any platform. --- src/SALOME_InstallWizard.cxx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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() ); -- 2.39.2