From ce3c78545a8ae6ec717737825bf0ed3e0165fb36 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 7 Apr 2005 21:47:17 +0000 Subject: [project @ 2005-04-07 21:47:17 by rjw] Stop Ctrl+Q/W without a content from killing NetSurf. svn path=/import/netsurf/; revision=1604 --- riscos/window.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'riscos') diff --git a/riscos/window.c b/riscos/window.c index 8cfb254e2..ff5036359 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1659,6 +1659,8 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar) case 17: /* CTRL+Q (Zoom out) */ case 23: /* CTRL+W (Zoom in) */ + if (!content) + break; old_scale = g->option.scale; if (key == 17) { for (int i = SCALE_SNAP_TO_SIZE - 1; i >= 0; i--) -- cgit v1.2.3