From 47f6e29b4c5a9c02b69e146edc2dc21c90efeebf Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 21 Nov 2014 12:53:55 +0000 Subject: Use browser_window_stop_available() Looking at bw->loading_content was bad and wrong in the cases of frames, and object fetches. --- cocoa/BrowserViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa/BrowserViewController.m') diff --git a/cocoa/BrowserViewController.m b/cocoa/BrowserViewController.m index 1f496fd7a..10a28d16d 100644 --- a/cocoa/BrowserViewController.m +++ b/cocoa/BrowserViewController.m @@ -244,7 +244,7 @@ static inline bool compare_float( float a, float b ) } if (action == @selector( stopLoading: )) { - return browser->loading_content != NULL; + return browser_window_stop_available( browser ) } if (action == @selector( zoomOriginal: )) { -- cgit v1.2.3