MCPcopy Create free account
hub / github.com/baldurk/renderdoc / CloseCapture

Method CloseCapture

qrenderdoc/Windows/MainWindow.cpp:1180–1198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178}
1179
1180void MainWindow::CloseCapture()
1181{
1182 QString path = m_Ctx.GetCaptureFilename();
1183 bool local = m_Ctx.IsCaptureLocal();
1184 bool temp = m_Ctx.IsCaptureTemporary();
1185
1186 m_Ctx.CloseCapture();
1187
1188 if(m_OwnTempCapture && temp)
1189 {
1190 m_Ctx.Replay().DeleteCapture(path, local);
1191 RemoveRecentCapture(path);
1192 m_OwnTempCapture = false;
1193 }
1194
1195 ui->action_Save_Capture_Inplace->setEnabled(false);
1196 ui->action_Save_Capture_As->setEnabled(false);
1197 ui->menu_Export_As->setEnabled(false);
1198}
1199
1200void MainWindow::SetTitle(const QString &filename)
1201{

Callers 1

Calls 4

GetCaptureFilenameMethod · 0.45
IsCaptureLocalMethod · 0.45
IsCaptureTemporaryMethod · 0.45
DeleteCaptureMethod · 0.45

Tested by

no test coverage detected