From 64f0938e8ba4d670eb4390587e2a79cd4d7c4347 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 13 Sep 2011 16:56:59 +0000 Subject: 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 --- amiga/gui_options.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/amiga/gui_options.c b/amiga/gui_options.c index e618e526c..e85600272 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -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) -- cgit v1.2.3