From e646d2046e879dba36deb20624bdaa5eb5d04257 Mon Sep 17 00:00:00 2001 From: bamse16 Date: Thu, 26 Mar 2009 14:01:54 +0000 Subject: Reset print settings, so we're not prompted about saving them --- Source/TableDocument.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 314caa0e..3eb2f65e 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1499,6 +1499,9 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa - (void)windowWillClose:(NSNotification *)aNotification { + //reset print settings, so we're not prompted about saving them + [self setPrintInfo:[NSPrintInfo sharedPrintInfo]]; + if ([mySQLConnection isConnected]) [self closeConnection]; if ([[queryConsoleInstance window] isVisible]) [self toggleConsole:self]; [[NSNotificationCenter defaultCenter] removeObserver:self]; -- cgit v1.2.3