| 1350 | /// |
| 1351 | /// |
| 1352 | void ExportFFmpegOptions::OnOK(wxCommandEvent& WXUNUSED(event)) |
| 1353 | { |
| 1354 | if( ReportIfBadCombination() ) |
| 1355 | return; |
| 1356 | |
| 1357 | int selcdc = mCodecList->GetSelection(); |
| 1358 | int selfmt = mFormatList->GetSelection(); |
| 1359 | if (selcdc > -1) gPrefs->Write(wxT("/FileFormats/FFmpegCodec"),mCodecList->GetString(selcdc)); |
| 1360 | if (selfmt > -1) gPrefs->Write(wxT("/FileFormats/FFmpegFormat"),mFormatList->GetString(selfmt)); |
| 1361 | gPrefs->Flush(); |
| 1362 | |
| 1363 | ShuttleGui S(this, eIsSavingToPrefs); |
| 1364 | PopulateOrExchange(S); |
| 1365 | |
| 1366 | gPrefs->Flush(); |
| 1367 | |
| 1368 | EndModal(wxID_OK); |
| 1369 | |
| 1370 | return; |
| 1371 | } |
| 1372 | |
| 1373 | void ExportFFmpegOptions::OnGetURL(wxCommandEvent & WXUNUSED(event)) |
| 1374 | { |
nothing calls this directly
no test coverage detected