mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Return focused tree item in GetFocusedObjects() even if tree is not focused, in cases where database tab does not has focus. Fixes issue #3146.
This commit is contained in:
@ -3317,7 +3317,7 @@ var
|
||||
begin
|
||||
// Find out if user rightclicked in tree or in database tab,
|
||||
// which is a bit complex, so outsourced here.
|
||||
Result := DBTree.Focused;
|
||||
Result := DBTree.Focused or (PageControlMain.ActivePage <> tabDatabase);
|
||||
if Sender is TAction then begin
|
||||
ClickedControl := (Sender as TAction).ActionComponent;
|
||||
if ClickedControl is TMenuItem then begin
|
||||
|
Reference in New Issue
Block a user