Don't display pixel context right-click context menu if no log is loaded

* This fixes an uploaded crash, where this context menu could launch
  operations that crash without a capture to work on.
This commit is contained in:
baldurk
2017-01-04 16:45:54 +00:00
parent 8256a00e1e
commit 4a2e901807
+3
View File
@@ -2962,6 +2962,9 @@ namespace renderdocui.Windows
{
pixelContext.Focus();
if (!m_Core.LogLoaded)
return;
if (e.Button == MouseButtons.Right)
{
pixelContextMenu.Show(pixelContext, e.Location);