| 1178 | } |
| 1179 | |
| 1180 | void 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 | |
| 1200 | void MainWindow::SetTitle(const QString &filename) |
| 1201 | { |
no test coverage detected