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 );