// File : SALOME_ProductsView.cxx
// Created : Thu Dec 18 12:01:00 2002
// Author : Vadim SANDLER
-// Project : PAL/SALOME
-// Module : InstallWizard
-// Copyright : 2004 CEA
-// $Header$
+// Project : SALOME
+// Module : Installation Wizard
+// Copyright : 2004-2005 CEA
#include "SALOME_ProductsView.hxx"
#include <qstringlist.h>
}
subItem = (QCheckListItem*)( subItem->nextSibling() );
}
- if ( srcItem )
- srcItem->setOn( true );
- if ( nativeItem )
+ if ( nativeItem ) // prefer native item
nativeItem->setOn( true );
+ else if ( srcItem )
+ srcItem->setOn( true );
}
else {
item->setOn( true );
if ( item->childCount() > 0 ) {
QCheckListItem* subItem = (QCheckListItem*)( item->firstChild() );
QCheckListItem* binItem = 0;
+ QCheckListItem* nativeItem = 0;
while( subItem ) {
if ( subItem->text() == tr( "install binaries" ) )
binItem = binItem;
+ if ( subItem->text() == tr( "use native" ) )
+ nativeItem = subItem;
if ( subItem->text() == tr( "install sources" ) ) {
subItem->setOn( true );
return;
}
subItem = (QCheckListItem*)( subItem->nextSibling() );
}
- if ( binItem )
+ if ( nativeItem ) // prefer native item
+ nativeItem->setOn( true );
+ else if ( binItem )
binItem->setOn( true );
}
else {
if ( item->childCount() > 0 ) {
QCheckListItem* subItem = (QCheckListItem*)( item->firstChild() );
QCheckListItem* binItem = 0;
+ QCheckListItem* srcItem = 0;
while( subItem ) {
if ( subItem->text() == tr( "install binaries" ) )
binItem = binItem;
+ if ( subItem->text() == tr( "install sources" ) )
+ srcItem = subItem;
if ( subItem->text() == tr( "use native" ) ) {
subItem->setOn( true );
return;
}
subItem = (QCheckListItem*)( subItem->nextSibling() );
}
- if ( binItem )
+ if ( binItem ) // prefer binaries
binItem->setOn( true );
+ else if ( srcItem )
+ srcItem->setOn( true );
}
else {
item->setOn( true );