Salome HOME
Implement features:
[tools/install.git] / src / SALOME_ProductsView.cxx
index 8bb8161fbf306b8a5fe6a3692fc7438133d286fd..6c2ee33b05b18bfea75e89ccd96e74f934ccc14d 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "SALOME_ProductsView.hxx"
 #include <qstringlist.h>
+#include <qregexp.h>
 
 // ================================================================
 /*!
@@ -386,7 +387,7 @@ void ProductsView::setItemEnabled( QCheckListItem* item, const bool enable )
 // ================================================================
 QCheckListItem* ProductsView::findBinItem( const QString& srcName )
 {
-  QString binName = srcName.lower().replace( "src", "bin" );
+  QString binName = srcName.lower().replace( QRegExp("src"), "bin" );
   QCheckListItem* subItem = (QCheckListItem*)( firstChild() );
   while( subItem ) {
     if ( subItem->text().lower() == binName )