mirror of https://gitlab.com/basile.b/dexed.git
More condition not to unselect message
opt dbl click and context != editor
This commit is contained in:
parent
b6d138fbd0
commit
4fb8246951
|
@ -1004,6 +1004,7 @@ procedure TCEMessagesWidget.handleMessageClick(Sender: TObject);
|
||||||
var
|
var
|
||||||
pos: TPoint;
|
pos: TPoint;
|
||||||
msg: string;
|
msg: string;
|
||||||
|
dat: PMessageData;
|
||||||
old: TCESynMemo;
|
old: TCESynMemo;
|
||||||
begin
|
begin
|
||||||
if List.Selected.isNil then
|
if List.Selected.isNil then
|
||||||
|
@ -1012,10 +1013,12 @@ begin
|
||||||
exit;
|
exit;
|
||||||
old := fDoc;
|
old := fDoc;
|
||||||
msg := List.Selected.Text;
|
msg := List.Selected.Text;
|
||||||
|
dat := PMessageData(List.Selected.Data);
|
||||||
if not openFileFromDmdMessage(msg) then
|
if not openFileFromDmdMessage(msg) then
|
||||||
exit;
|
exit;
|
||||||
if fDoc <> old then
|
if (fDoc <> old) and fOptions.singleMessageClick and
|
||||||
List.ClearSelection(false);
|
assigned(dat) and (dat^.ctxt = amcEdit) then
|
||||||
|
List.ClearSelection(false);
|
||||||
// from here, since a doc has the focus, List.Selected is nil
|
// from here, since a doc has the focus, List.Selected is nil
|
||||||
pos := getLineFromMessage(msg);
|
pos := getLineFromMessage(msg);
|
||||||
if fDoc.isNil then
|
if fDoc.isNil then
|
||||||
|
|
Loading…
Reference in New Issue