Commit dc4cdcd8 authored by Claes Sjofors's avatar Claes Sjofors

Bugfix, DetachedClassVolume wasn't handled

parent 7c27fc19
......@@ -729,7 +729,8 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
strcpy( vname, "$pwrp_db/");
strcat( vname, vol_array[0]);
cdh_ToLower( vname, vname);
if ( cdh_NoCaseStrcmp( vol_array[2], "ClassVolume") == 0) {
if ( cdh_NoCaseStrcmp( vol_array[2], "ClassVolume") == 0 ||
cdh_NoCaseStrcmp( vol_array[2], "DetchedClassVolume") == 0) {
is_classvolume = 1;
if ( nr >= 5 && vol_array[4][0] == '2')
db_type = eDbType_dbms;
......
......@@ -86,7 +86,8 @@ void wb_vrepmem::loadWbl( const char *filename, pwr_tStatus *sts, bool reload)
return;
}
if ( vrep->cid() == pwr_eClass_ClassVolume) {
if ( vrep->cid() == pwr_eClass_ClassVolume ||
vrep->cid() == pwr_eClass_DetachedClassVolume) {
// Start the class editor
// Insert vrepwbl in local merep to interprete the Template objects
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment