mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Internally reset cached list of databases after dropping a db. Fixes issue #2271.
This commit is contained in:
@ -2630,6 +2630,8 @@ begin
|
||||
Conn.Query('DROP DATABASE ' + QuoteIdent(db));
|
||||
DBtree.DeleteNode(Node);
|
||||
Conn.ClearDbObjects(db);
|
||||
Conn.RefreshAllDatabases;
|
||||
InvalidateVT(ListDatabases, VTREE_NOTLOADED_PURGECACHE, False);
|
||||
except
|
||||
on E:EDatabaseError do
|
||||
MessageDlg(E.Message, mtError, [mbOK], 0);
|
||||
|
Reference in New Issue
Block a user