From 6fea9ef2010e139d07590198d11967a796ef2fa7 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Wed, 26 Nov 2014 21:43:19 +0100 Subject: [PATCH] Fixed warning on quit by window destroy. If vimb was quit by the window manager, the webview was already cleared and the call to stop loading caused a warning. --- src/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 685f17f..6c9d90e 100644 --- a/src/main.c +++ b/src/main.c @@ -415,6 +415,8 @@ void vb_quit(gboolean force) return; } + webkit_web_view_stop_loading(vb.gui.webview); + /* write last URL into file for recreation */ if (vb.state.uri) { g_file_set_contents(vb.files[FILES_CLOSED], vb.state.uri, -1, NULL); @@ -1512,9 +1514,6 @@ static void vb_cleanup(void) { completion_clean(); - - webkit_web_view_stop_loading(vb.gui.webview); - map_cleanup(); mode_cleanup(); setting_cleanup(); -- 2.20.1