mirror of https://github.com/odrling/Aegisub
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:
parent
07327c2b65
commit
de7df882e9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue