Don't do any shader viewer work if the log is closed

This commit is contained in:
baldurk
2015-11-06 16:46:46 +01:00
parent b5b8cf574d
commit c71191906b
+3
View File
@@ -924,6 +924,9 @@ namespace renderdocui.Windows
void scintilla1_Click(object sender, EventArgs e)
{
if (!m_Core.LogLoaded)
return;
ScintillaNET.Scintilla scintilla1 = sender as ScintillaNET.Scintilla;
string word = scintilla1.GetWordFromPosition(scintilla1.CurrentPos);