Only show texture viewer when closing live capture if we got a capture

This commit is contained in:
Baldur Karlsson
2018-03-13 15:49:31 +00:00
parent d4b1741cec
commit 93cebc715c
+1 -1
View File
@@ -1033,7 +1033,7 @@ void LiveCapture::connectionClosed()
{
// raise the texture viewer if it exists, instead of falling back to most likely the capture
// executable dialog which is not useful.
if(m_Ctx.HasTextureViewer())
if(ui->captures->count() == 1 && m_Ctx.HasTextureViewer())
m_Ctx.ShowTextureViewer();
selfClose();
return;