mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 00:19:30 -05:00
fix #20 crash on shutdown with plugins enabled. Settings window did leak plugin config pages (patch from hunbernd)
This commit is contained in:
parent
ab25e35861
commit
6b2ed2fb2d
@ -154,13 +154,16 @@ RSettingsWin::initStackedWidget()
|
|||||||
|
|
||||||
// add widgets from plugins
|
// add widgets from plugins
|
||||||
|
|
||||||
for(int i=0;i<rsPlugins->nbPlugins();++i)
|
for(int i=0;i<rsPlugins->nbPlugins();++i)
|
||||||
{
|
{
|
||||||
RsPlugin *pl = rsPlugins->plugin(i) ;
|
RsPlugin *pl = rsPlugins->plugin(i) ;
|
||||||
|
if(pl != NULL)
|
||||||
if(pl != NULL && pl->qt_config_page() != NULL)
|
{
|
||||||
addPage(pl->qt_config_page()) ;
|
ConfigPage* cp = pl->qt_config_page();
|
||||||
}
|
if(cp != NULL)
|
||||||
|
addPage(cp) ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// make the first page the default.
|
// make the first page the default.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user