[3.0] Fixed copy/paste for repeated operation 90/83290/2
authortaeyoon <taeyoon0.lee@samsung.com>
Wed, 10 Aug 2016 04:25:14 +0000 (13:25 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Wed, 10 Aug 2016 06:43:25 +0000 (15:43 +0900)
This reverts commit 626a90ae306762a07ac9b68a84513b7392d73b65.

Change-Id: I6f709a65db54e8d527f12cd4fb4af3815cc7d557

adaptors/ecore/wayland/clipboard-impl-ecore-wl.cpp

index 513ec21..a55508a 100644 (file)
@@ -53,6 +53,12 @@ struct Clipboard::Impl
 
   void SetItem(const char *data)
   {
+    char *temp = NULL;
+
+    if (bundle_get_str(mBundle, CLIPBOARD_STR, &temp) == BUNDLE_ERROR_NONE)
+    {
+      bundle_del(mBundle, CLIPBOARD_STR);
+    }
     bundle_add_str(mBundle, CLIPBOARD_STR, data);
   }