From e8e15b91333c8528eb398557c33cca6a0a82fb6d Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 15 Aug 2016 18:00:12 +0100 Subject: Open a new window instead of a tab if we can't locate the window the tab is supposed to be added to. --- frontends/amiga/arexx.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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]) { -- cgit v1.2.3