]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
To show Warning message if user didn't select any platform.
authorakl <akl@opencascade.com>
Mon, 10 Sep 2007 07:59:52 +0000 (07:59 +0000)
committerakl <akl@opencascade.com>
Mon, 10 Sep 2007 07:59:52 +0000 (07:59 +0000)
src/SALOME_InstallWizard.cxx

index 403011e029bb825f76441bf6ba3c52dd7f6e9ae9..195aae98741056ab9f93ef51f360f36476c5dc1d 100644 (file)
@@ -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() );