From d75b81479cd4eeb36d2fe92deeb6678cc72eff76 Mon Sep 17 00:00:00 2001 From: RKrom Date: Sun, 14 Oct 2012 17:48:57 +0000 Subject: [PATCH] Fixed eventual clipboard issues, which was not possible before as the ClipboardHelper wasn't in the plugin project. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2144 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotImgurPlugin/Forms/ImgurHistory.cs | 6 +----- GreenshotImgurPlugin/ImgurPlugin.cs | 4 ++-- GreenshotImmioPlugin/ImmioPlugin.cs | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/GreenshotImgurPlugin/Forms/ImgurHistory.cs b/GreenshotImgurPlugin/Forms/ImgurHistory.cs index da20e92c1..eb7b5508c 100644 --- a/GreenshotImgurPlugin/Forms/ImgurHistory.cs +++ b/GreenshotImgurPlugin/Forms/ImgurHistory.cs @@ -154,11 +154,7 @@ namespace GreenshotImgurPlugin { } } } - try { - Clipboard.SetText(links.ToString()); - } catch (Exception ex) { - LOG.Error("Can't write to clipboard: ", ex); - } + ClipboardHelper.SetClipboardData(links.ToString()); } private void FinishedButtonClick(object sender, EventArgs e) { diff --git a/GreenshotImgurPlugin/ImgurPlugin.cs b/GreenshotImgurPlugin/ImgurPlugin.cs index 2553fd2ad..409f321c8 100644 --- a/GreenshotImgurPlugin/ImgurPlugin.cs +++ b/GreenshotImgurPlugin/ImgurPlugin.cs @@ -163,10 +163,10 @@ namespace GreenshotImgurPlugin { try { if (config.UsePageLink) { uploadURL = imgurInfo.Page; - Clipboard.SetText(imgurInfo.Page); + ClipboardHelper.SetClipboardData(imgurInfo.Page); } else { uploadURL = imgurInfo.Original; - Clipboard.SetText(imgurInfo.Original); + ClipboardHelper.SetClipboardData(imgurInfo.Original); } } catch (Exception ex) { LOG.Error("Can't write to clipboard: ", ex); diff --git a/GreenshotImmioPlugin/ImmioPlugin.cs b/GreenshotImmioPlugin/ImmioPlugin.cs index adb17005b..fe5e9ce65 100644 --- a/GreenshotImmioPlugin/ImmioPlugin.cs +++ b/GreenshotImmioPlugin/ImmioPlugin.cs @@ -123,7 +123,7 @@ namespace GreenshotImmioPlugin { IniConfig.Save(); try { - Clipboard.SetText(url); + ClipboardHelper.SetClipboardData(url); } catch (Exception ex) { LOG.Error("Can't write to clipboard: ", ex); }