~helene-verhaeghe27/cairo-dock-core/bugfix

« back to all changes in this revision

Viewing changes to src/cairo-dock-widget-module.c

  • Committer: Fabrice Rey
  • Date: 2012-09-04 23:27:34 UTC
  • Revision ID: fabounet03@gmail.com-20120904232734-011ni1mvpu60n3mo
Advanced GUI: fixed a bug that prevented to edit a 2nd instance of an applet + renamed to 'advanced'

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        g_return_val_if_fail (pModule != NULL, NULL);
136
136
        
137
137
        CairoDockModuleInstance *pModuleInstance = (pInstance ? pInstance : pModule->pInstancesList != NULL ? pModule->pInstancesList->data : NULL);  // can be NULL if the module is not yet activated.
138
 
        gchar *cConfFilePath = _get_valid_module_conf_file (pModule);
 
138
        gchar *cConfFilePath = (pInstance ? pInstance->cConfFilePath : _get_valid_module_conf_file (pModule));
139
139
        
140
140
        ModuleWidget *pModuleWidget = g_new0 (ModuleWidget, 1);
141
141
        pModuleWidget->widget.iType = WIDGET_MODULE;