summaryrefslogtreecommitdiff
path: root/amiga/gui_options.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-09-13 16:56:59 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-09-13 16:56:59 +0000
commit64f0938e8ba4d670eb4390587e2a79cd4d7c4347 (patch)
tree200aa22e92a3472d3ffae977316cddd8671c7966 /amiga/gui_options.c
parent715a753810bd15363b881988bf95d52a1b2fc381 (diff)
downloadnetsurf-64f0938e8ba4d670eb4390587e2a79cd4d7c4347.tar.gz
netsurf-64f0938e8ba4d670eb4390587e2a79cd4d7c4347.tar.bz2
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
Diffstat (limited to 'amiga/gui_options.c')
-rwxr-xr-xamiga/gui_options.c7
1 files changed, 7 insertions, 0 deletions
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)