From d57bf0c5f9436c7faa917700a48e26f77d5881b0 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 6 Oct 2008 21:38:54 +0000 Subject: [PATCH] WinGui: - Another small improvement to the activity window. If the user has only selected a small block of text, then the copy to clipboard function now only copies that, rather than the full log. git-svn-id: svn://localhost/HandBrake/trunk@1818 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmActivityWindow.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs index c0911eac..cb2bbc22 100644 --- a/win/C#/frmActivityWindow.cs +++ b/win/C#/frmActivityWindow.cs @@ -138,7 +138,10 @@ namespace Handbrake /// private void btn_copy_Click(object sender, EventArgs e) { - Clipboard.SetDataObject(rtf_actLog.Text, true); + if (rtf_actLog.SelectedText != "") + Clipboard.SetDataObject(rtf_actLog.SelectedText, true); + else + Clipboard.SetDataObject(rtf_actLog.Text, true); } /// -- 2.11.0