fix #20 crash on shutdown with plugins enabled. Settings window did leak plugin config pages (patch from hunbernd)

This commit is contained in:
electron128 2015-07-30 11:11:16 +02:00 committed by cave beat
parent ab25e35861
commit 6b2ed2fb2d

View File

@ -154,13 +154,16 @@ RSettingsWin::initStackedWidget()
// add widgets from plugins
for(int i=0;i<rsPlugins->nbPlugins();++i)
{
RsPlugin *pl = rsPlugins->plugin(i) ;
if(pl != NULL && pl->qt_config_page() != NULL)
addPage(pl->qt_config_page()) ;
}
for(int i=0;i<rsPlugins->nbPlugins();++i)
{
RsPlugin *pl = rsPlugins->plugin(i) ;
if(pl != NULL)
{
ConfigPage* cp = pl->qt_config_page();
if(cp != NULL)
addPage(cp) ;
}
}
// make the first page the default.