X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Fawindowgui.C;fp=cinelerra-5.0%2Fcinelerra%2Fawindowgui.C;h=771faeeea80b6fc0d918e115b9593a7e9a667314;hb=7bb8e93f40c79f5cd5f90189a8f69357f0a389b0;hp=3052201f1cdf36c54628f6bcdd5f8ec087a70883;hpb=6a82410515aad7c7588933c9380041f63020a6bc;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/awindowgui.C b/cinelerra-5.0/cinelerra/awindowgui.C index 3052201f..771faeee 100644 --- a/cinelerra-5.0/cinelerra/awindowgui.C +++ b/cinelerra-5.0/cinelerra/awindowgui.C @@ -766,16 +766,20 @@ void AWindowRemovePlugin::handle_close_event(int result) 0; if( folder ) remove_plugin(plugin, *folder); awindow->gui->update_assets(); - char png_path[BCTEXTLEN], plugin_path[BCTEXTLEN], index_path[BCTEXTLEN]; + char plugin_path[BCTEXTLEN]; strcpy(plugin_path, plugin->path); - if( !plugin->get_plugin_png_path(png_path) ) png_path[0] = 0; MWindow *mwindow = awindow->mwindow; - sprintf(index_path, "%s/%s", mwindow->preferences->plugin_dir, PLUGIN_FILE); mwindow->plugindb->remove(plugin); delete plugin; plugin = 0; remove(plugin_path); - if( png_path[0] ) remove(png_path); + char index_path[BCTEXTLEN]; + sprintf(index_path, "%s/%s", mwindow->preferences->plugin_dir, PLUGIN_FILE); remove(index_path); + char png_path[BCTEXTLEN]; + if( plugin->get_theme_png_path(png_path, mwindow->preferences->theme) ) + remove(png_path); + if( plugin->get_theme_png_path(png_path, "picon") ) + remove(png_path); } }