Seek audio to the line on double-click in the grid in addition to video

Originally committed to SVN as r6456.
This commit is contained in:
Thomas Goyne 2012-02-07 23:17:26 +00:00
parent 07327c2b65
commit de7df882e9
1 changed files with 5 additions and 1 deletions

View File

@ -57,6 +57,7 @@
#include "ass_dialogue.h" #include "ass_dialogue.h"
#include "ass_file.h" #include "ass_file.h"
#include "ass_style.h" #include "ass_style.h"
#include "audio_box.h"
#include "compat.h" #include "compat.h"
#include "frame_main.h" #include "frame_main.h"
#include "main.h" #include "main.h"
@ -735,7 +736,10 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
// Normal click // Normal click
if ((click || dclick) && !shift && !ctrl && !alt) { if ((click || dclick) && !shift && !ctrl && !alt) {
if (dclick) context->videoController->JumpToTime(dlg->Start); if (dclick) {
context->audioBox->ScrollToActiveLine();
context->videoController->JumpToTime(dlg->Start);
}
SelectRow(row, false); SelectRow(row, false);
return; return;
} }