diff options
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 35338463..d0553f27 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -2806,6 +2806,10 @@ */ - (void)historyItemsHaveBeenUpdated:(id)manager { + + // Abort if the connection has been closed already - sign of a closed window + if (![mySQLConnection isConnected]) return; + // Refresh history popup menu NSMenu* historyMenu = [queryHistoryButton menu]; while([queryHistoryButton numberOfItems] > 7) |