mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -04: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
1 changed files with 10 additions and 7 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue