uiacceltk/hitchcock/goommonitor/src/goomconfig.cpp
branchRCL_3
changeset 20 31fccae4f8a7
parent 19 e5af45d51884
equal deleted inserted replaced
19:e5af45d51884 20:31fccae4f8a7
    73 
    73 
    74     // Check if the plugin has already been added, if so then this is an error in configuration (something is trying to add the same plugin twice)
    74     // Check if the plugin has already been added, if so then this is an error in configuration (something is trying to add the same plugin twice)
    75     CGOomRunPluginConfig** runPluginConfig = iPluginToConfigMapping.Find(aPluginConfig->Id());
    75     CGOomRunPluginConfig** runPluginConfig = iPluginToConfigMapping.Find(aPluginConfig->Id());
    76     if (runPluginConfig)
    76     if (runPluginConfig)
    77         {
    77         {
    78         //GOomMonitorPanic(KPluginConfigAddedTwice);
    78         GOomMonitorPanic(KPluginConfigAddedTwice);
    79         while((*runPluginConfig)->iNextConfig != NULL)
       
    80             *runPluginConfig = (*runPluginConfig)->iNextConfig;
       
    81         
       
    82         (*runPluginConfig)->iNextConfig = aPluginConfig;
       
    83         return;
       
    84         }
    79         }
    85     
    80     
    86     iPluginToConfigMapping.InsertL(aPluginConfig->Id(), aPluginConfig);
    81     iPluginToConfigMapping.InsertL(aPluginConfig->Id(), aPluginConfig);
    87     
    82     
    88     }
    83     }