From a6f41219f1a6251da2ae5d31202b88adcce1ffc2 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://svn.handbrake.fr/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 c0911eaca..cb2bbc222 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.40.0