From 11b30c8bb4d0546bc6f6f89a52c2b178653482b9 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 27 Jun 2010 04:55:14 +0000 Subject: [PATCH] When the active line is deselected via ctrl-clicking, set the active line to a line which is selected. Originally committed to SVN as r4616. --- aegisub/src/base_grid.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aegisub/src/base_grid.cpp b/aegisub/src/base_grid.cpp index 42b4fdf4b..6af9ce078 100644 --- a/aegisub/src/base_grid.cpp +++ b/aegisub/src/base_grid.cpp @@ -774,6 +774,9 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) { // Toggle selected if (click && ctrl && !shift && !alt) { SelectRow(row,true,!IsInSelection(row,0)); + if (dlg == GetActiveLine()) { + SetActiveLine(GetDialogue(GetFirstSelRow())); + } parentFrame->UpdateToolbar(); lastRow = row; return;