If the prefs window is already open ad Edit Prefs is called from the menu, bring the

already-opened prefs window to the front and make it active.

svn path=/trunk/netsurf/; revision=12792
This commit is contained in:
Chris Young 2011-09-13 16:56:59 +00:00
parent 715a753810
commit 64f0938e8b
1 changed files with 7 additions and 0 deletions

View File

@ -381,6 +381,13 @@ void ami_gui_opts_open(void)
char animspeed[10];
struct TextAttr fontsans, fontserif, fontmono, fontcursive, fontfantasy, fontunicode;
if(gow && gow->win)
{
WindowToFront(gow->win);
ActivateWindow(gow->win);
return;
}
if(option_use_pubscreen && option_use_pubscreen[0] != '\0')
{
if(strcmp(option_use_pubscreen,"Workbench") == 0)