Debugger: Text Hooker - Fixed crash when auto-copy to clipboard is enabled while screen doesn't contain any text
This commit is contained in:
parent
26b94f18cd
commit
28aeacef9f
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ namespace Mesen.GUI.Debugger.Controls
|
|||
}
|
||||
|
||||
txtSelectedText.Text = output.ToString();
|
||||
if(chkAutoCopyToClipboard.Checked) {
|
||||
if(chkAutoCopyToClipboard.Checked && !string.IsNullOrWhiteSpace(txtSelectedText.Text)) {
|
||||
Clipboard.SetText(txtSelectedText.Text);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue