mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 20:50:20 +08:00
Do not raise, just put a log info when previously focused db or table is gone after refreshing. This is a normal case when db or table was deleted from outside or via query. Fixes issue #2059.
This commit is contained in:
@ -5310,7 +5310,7 @@ begin
|
||||
DBTree.FocusedNode := snode;
|
||||
exit;
|
||||
end;
|
||||
raise Exception.Create('Table node ' + Text + ' not found in tree.');
|
||||
LogSQL('Table node ' + Text + ' not found in tree.', lcError);
|
||||
end;
|
||||
|
||||
|
||||
@ -5328,7 +5328,7 @@ begin
|
||||
if (not Assigned(f)) or (f.Parent <> n) then
|
||||
SelectNode(DBtree, n);
|
||||
end else
|
||||
raise Exception.Create('Database node ' + db + ' not found in tree.');
|
||||
LogSQL('Database node ' + db + ' not found in tree.', lcError);
|
||||
end;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user