-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
qSort( slglobal );
qSort( sluser );
}
+ // special processing for default material (to make it first in the list)
+ if ( slglobal.contains( "[ Default ]" ) ) {
+ slglobal.removeAll( "[ Default ]" );
+ slglobal.prepend( "[ Default ]" );
+ }
// combine the materials to obtain result list
QStringList result;