Bugfix: Panel popping out when shown because it's already visible

This commit is contained in:
Joel Holdsworth 2009-04-16 10:08:35 +01:00
parent 8baca7edc6
commit 5eed949e27

View file

@ -132,7 +132,8 @@ PanelManager::show_panel(const int description_index)
panels::Panel* const panel = *i;
if(get_panel_type(panel) == description_index)
{
panel->show();
if(!panel->is_shown())
panel->show();
GdlDockItem *dock_item = panel->get_dock_item();
ENSURE(dock_item);