From bbc2f4766ecb2b5baec29d2dfcc8382533d63e8f Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 17 Jul 2016 07:33:21 +0200 Subject: [PATCH] fixed: one other reference to _stateUID --- AppKit/Platform/DOM/CPPlatformPasteboard.j | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AppKit/Platform/DOM/CPPlatformPasteboard.j b/AppKit/Platform/DOM/CPPlatformPasteboard.j index 3c215d1b9..a1c8fc5a6 100644 --- a/AppKit/Platform/DOM/CPPlatformPasteboard.j +++ b/AppKit/Platform/DOM/CPPlatformPasteboard.j @@ -384,9 +384,10 @@ Return true if the event may be a copy and paste event, but the target is not an if ([value length]) { - var pasteboard = [CPPasteboard generalPasteboard]; + var pasteboard = [CPPasteboard generalPasteboard], + cappString = [pasteboard stringForType:CPStringPboardType]; - if ([pasteboard _stateUID] != value) + if (cappString !== value) { [pasteboard declareTypes:[CPStringPboardType] owner:self]; [pasteboard setString:value forType:CPStringPboardType];