mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Attempt to fix a crash, happening in some cases when user focuses a tree node in a different connection
This commit is contained in:
@ -9581,7 +9581,9 @@ begin
|
||||
PrevDBObj := Sender.GetNodeData(TreeClickHistoryPrevious(True));
|
||||
|
||||
// When clicked node is from a different connection than before, do session specific stuff here:
|
||||
if (PrevDBObj = nil) or (PrevDBObj.Connection <> FActiveDbObj.Connection) then begin
|
||||
if Assigned(FActiveDbObj)
|
||||
and ((PrevDBObj = nil) or (PrevDBObj.Connection <> FActiveDbObj.Connection))
|
||||
then begin
|
||||
LogSQL(f_('Entering session "%s"', [FActiveDbObj.Connection.Parameters.SessionPath]), lcInfo);
|
||||
RefreshHelperNode(TQueryTab.HelperNodeHistory);
|
||||
RefreshHelperNode(TQueryTab.HelperNodeProfile);
|
||||
|
Reference in New Issue
Block a user