| 1065 | } |
| 1066 | |
| 1067 | void MainWindow::exportCapture(const CaptureFileFormat &fmt) |
| 1068 | { |
| 1069 | if(!m_Ctx.IsCaptureLocal()) |
| 1070 | { |
| 1071 | RDDialog::information( |
| 1072 | this, tr("Save changes to capture?"), |
| 1073 | tr("The capture is on a remote host, it must be saved locally before it can be exported.")); |
| 1074 | PromptSaveCaptureAs(); |
| 1075 | return; |
| 1076 | } |
| 1077 | |
| 1078 | QString saveFilename = |
| 1079 | GetSavePath(tr("Export Capture As"), |
| 1080 | tr("%1 Files (*.%2)").arg(QString(fmt.name)).arg(QString(fmt.extension))); |
| 1081 | |
| 1082 | if(!saveFilename.isEmpty()) |
| 1083 | m_Ctx.ExportCapture(fmt, saveFilename); |
| 1084 | } |
| 1085 | |
| 1086 | bool MainWindow::PromptCloseCapture() |
| 1087 | { |
nothing calls this directly
no test coverage detected