| 1044 | } |
| 1045 | |
| 1046 | bool MainWindow::SaveCurrentCapture(QString saveFilename) |
| 1047 | { |
| 1048 | QString origFilename = m_Ctx.GetCaptureFilename(); |
| 1049 | |
| 1050 | bool success = m_Ctx.SaveCaptureTo(saveFilename); |
| 1051 | |
| 1052 | if(!success) |
| 1053 | return false; |
| 1054 | |
| 1055 | AddRecentFile(m_Ctx.Config().RecentCaptureFiles, saveFilename); |
| 1056 | PopulateRecentCaptureFiles(); |
| 1057 | SetTitle(saveFilename); |
| 1058 | |
| 1059 | for(LiveCapture *live : m_LiveCaptures) |
| 1060 | live->fileSaved(origFilename, saveFilename); |
| 1061 | |
| 1062 | ui->action_Save_Capture_Inplace->setEnabled(false); |
| 1063 | |
| 1064 | return true; |
| 1065 | } |
| 1066 | |
| 1067 | void MainWindow::exportCapture(const CaptureFileFormat &fmt) |
| 1068 | { |
no test coverage detected