]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Remove duplicates from a list of 'not found' libraries.
authorakl <akl@opencascade.com>
Wed, 22 Aug 2007 11:22:22 +0000 (11:22 +0000)
committerakl <akl@opencascade.com>
Wed, 22 Aug 2007 11:22:22 +0000 (11:22 +0000)
src/SALOME_InstallWizard.cxx

index beec2a9f460d1eb60dc915c1d2ace92158868f8b..d74f0591d1c4f889fd785ab5b77012a8fad1ec59 100644 (file)
@@ -1663,16 +1663,17 @@ void SALOME_InstallWizard::updateAvailableSpace()
 void SALOME_InstallWizard::checkFLibResult()
 {
   if ( checkFLibProc->normalExit() && checkFLibProc->exitStatus() == 1 ) {
-    QString notFoundLibs;
+    QStringList notFoundLibsList;
+    QString record = "";
     while ( checkFLibProc->canReadLineStdout() ) {
-      notFoundLibs.append( checkFLibProc->readLineStdout() );
-      if ( checkFLibProc->canReadLineStdout() )
-       notFoundLibs.append( "\n" );
+      record = checkFLibProc->readLineStdout();
+      if ( !record.isEmpty() && !notFoundLibsList.contains( record ) )
+       notFoundLibsList.append( record );
     }
     QMessageBox::warning( this,
                          tr( "Warning" ),
                          tr( "The following libraries are absent on current system:\n"
-                         "%1").arg( notFoundLibs ),
+                         "%1").arg( notFoundLibsList.join( "\n" ) ),
                          QMessageBox::Ok,
                          QMessageBox::NoButton,
                          QMessageBox::NoButton );