summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-08-31 11:47:02 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-08-31 11:47:02 +0000
commitca162211f5e2f3d7312f87d77b2d7a50465dc20e (patch)
treeddea3fde9c7f9dc7ce2c03b85cb65f210d7d7d54
parentf2e3b559f0340a6ed65a87921291969d40a73038 (diff)
downloadnetsurf-ca162211f5e2f3d7312f87d77b2d7a50465dc20e.tar.gz
netsurf-ca162211f5e2f3d7312f87d77b2d7a50465dc20e.tar.bz2
Use API to find out if a browser window has a selection.
svn path=/trunk/netsurf/; revision=12683
-rw-r--r--cocoa/BrowserViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/BrowserViewController.m b/cocoa/BrowserViewController.m
index 2ae354d71..a1b18605c 100644
--- a/cocoa/BrowserViewController.m
+++ b/cocoa/BrowserViewController.m
@@ -202,11 +202,11 @@ static inline bool compare_float( float a, float b )
SEL action = [item action];
if (action == @selector(copy:)) {
- return selection_defined( browser->sel );
+ return browser_window_has_selection( browser );
}
if (action == @selector(cut:)) {
- return selection_defined( browser->sel ) && browser->caret_callback != NULL;
+ return browser_window_has_selection( browser ) && browser->caret_callback != NULL;
}
if (action == @selector(paste:)) {