Index: Source/core/editing/Editor.cpp |
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp |
index adb58dbcd3518a79a9e837160f46bc8b12b6a29d..9a3ded5e744c4218214f7f1414458b2eab3328fb 100644 |
--- a/Source/core/editing/Editor.cpp |
+++ b/Source/core/editing/Editor.cpp |
@@ -239,7 +239,10 @@ bool Editor::canCopy() const |
bool Editor::canPaste() const |
{ |
- return canEdit(); |
+ if (!canEdit()) |
+ return false; |
+ String text = Pasteboard::generalPasteboard()->plainText(); |
jamesr
2014/07/24 18:27:15
this is going to do a synchronous IPC to the brows
|
+ return !text.isEmpty(); |
} |
bool Editor::canDelete() const |