Skip to content

Commit

Permalink
Dock live capture windows with capture dialog if visible. Refs #1197
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Dec 13, 2018
1 parent 006bf38 commit 1fc5177
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qrenderdoc/Windows/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1fc5177

Please sign in to comment.