mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix crash if Ctrl-C is pressed while no log is loaded
This commit is contained in:
@@ -265,6 +265,8 @@ namespace renderdocui.Windows
|
||||
|
||||
private void apiEvents_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (!m_Core.LogLoaded) return;
|
||||
|
||||
if (e.KeyCode == Keys.C && e.Control)
|
||||
{
|
||||
string text = "";
|
||||
@@ -279,6 +281,8 @@ namespace renderdocui.Windows
|
||||
|
||||
private void callstack_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (!m_Core.LogLoaded) return;
|
||||
|
||||
if (e.KeyCode == Keys.C && e.Control)
|
||||
{
|
||||
string text = "";
|
||||
|
||||
Reference in New Issue
Block a user