summaryrefslogtreecommitdiffstats
path: root/src/tab-chrome.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tab-chrome.c')
-rw-r--r--src/tab-chrome.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index 90309a6..de10dc3 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -44,7 +44,11 @@ static void
stop_reload_clicked_cb(GtkToolButton __attribute__((unused)) *toolbutton,
MqTabChrome *chrome)
{
- webkit_web_view_reload(chrome->web_view);
+ if (webkit_web_view_is_loading(chrome->web_view)) {
+ webkit_web_view_stop_loading(chrome->web_view);
+ } else {
+ webkit_web_view_reload(chrome->web_view);
+ }
}
static void