summaryrefslogtreecommitdiff
path: root/frontends/amiga/arexx.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-08-15 18:00:12 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-08-15 18:00:12 +0100
commite8e15b91333c8528eb398557c33cca6a0a82fb6d (patch)
tree20408357d286fae35a2fc49d3e6bf5f0e5df4718 /frontends/amiga/arexx.c
parent923cc06f98d32946d384016f385fad47525a269f (diff)
downloadnetsurf-e8e15b91333c8528eb398557c33cca6a0a82fb6d.tar.gz
netsurf-e8e15b91333c8528eb398557c33cca6a0a82fb6d.tar.bz2
Open a new window instead of a tab if we can't locate the window the tab is supposed to be added to.
Diffstat (limited to 'frontends/amiga/arexx.c')
-rw-r--r--frontends/amiga/arexx.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/frontends/amiga/arexx.c b/frontends/amiga/arexx.c
index 1f2d95b86..ad67368a5 100644
--- a/frontends/amiga/arexx.c
+++ b/frontends/amiga/arexx.c
@@ -280,12 +280,20 @@ STATIC VOID rx_open(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((unu
}
else if(cmd->ac_ArgList[2])
{
- browser_window_create(BW_CREATE_HISTORY |
+ if(gw == NULL) {
+ browser_window_create(BW_CREATE_HISTORY,
+ url,
+ NULL,
+ NULL,
+ NULL);
+ } else {
+ browser_window_create(BW_CREATE_HISTORY |
BW_CREATE_TAB,
url,
NULL,
gw->bw,
NULL);
+ }
}
else if(cmd->ac_ArgList[1])
{