| 838 | } |
| 839 | |
| 840 | void LiveCapture::openCapture(Capture *cap) |
| 841 | { |
| 842 | cap->opened = true; |
| 843 | |
| 844 | if(!cap->local && m_Ctx.Replay().CurrentRemote().Hostname() != rdcstr(m_Hostname)) |
| 845 | { |
| 846 | RDDialog::critical( |
| 847 | this, tr("No active replay context"), |
| 848 | tr("This capture is on remote host %1 and there is no active replay context on that " |
| 849 | "host.\nYou can either save the capture locally, or switch to a replay context on %1.") |
| 850 | .arg(m_HostFriendlyname)); |
| 851 | return; |
| 852 | } |
| 853 | |
| 854 | m_Main->LoadCapture(cap->path, m_Ctx.Config().DefaultReplayOptions, !cap->saved, cap->local); |
| 855 | } |
| 856 | |
| 857 | bool LiveCapture::saveCapture(Capture *cap, QString path) |
| 858 | { |
nothing calls this directly
no test coverage detected