Commit f3273df5 authored by Rafaël Carré's avatar Rafaël Carré

Displays and hides simple preferences correctly

parent c404c42d
......@@ -155,9 +155,12 @@ void PrefsDialog::changeSimplePanel( QListWidgetItem *item )
main_panel_l->removeWidget( simple_panel );
simple_panel->hide();
}
if( !simple_panels[number] )
simple_panel = simple_panels[number];
if( !simple_panel )
{
simple_panel = new SPrefsPanel( p_intf, main_panel, number );
simple_panels[number] = simple_panel;
}
main_panel_l->addWidget( simple_panel );
simple_panel->show();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment