From 1fc51777d25ab0f218b3419c457cbb6caa98a426 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 13 Dec 2018 10:30:01 +0000 Subject: [PATCH] Dock live capture windows with capture dialog if visible. Refs #1197 --- qrenderdoc/Windows/MainWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/MainWindow.cpp b/qrenderdoc/Windows/MainWindow.cpp index 04b4007e47..b619f33005 100644 --- a/qrenderdoc/Windows/MainWindow.cpp +++ b/qrenderdoc/Windows/MainWindow.cpp @@ -1325,7 +1325,10 @@ void MainWindow::ShowLiveCapture(LiveCapture *live) { m_LiveCaptures.push_back(live); - m_Ctx.AddDockWindow(live, DockReference::MainToolArea, this); + if(m_Ctx.HasCaptureDialog()) + m_Ctx.AddDockWindow(live, DockReference::AddTo, m_Ctx.GetCaptureDialog()->Widget()); + else + m_Ctx.AddDockWindow(live, DockReference::MainToolArea, this); } void MainWindow::LiveCaptureClosed(LiveCapture *live)