diff options
author | bamse16 <marius@marius.me.uk> | 2009-03-26 14:01:54 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2009-03-26 14:01:54 +0000 |
commit | e646d2046e879dba36deb20624bdaa5eb5d04257 (patch) | |
tree | 9e892588b5853013a33791d6c093a297f80151c5 /Source | |
parent | dcf2748abe446d6fcb0e0e622502f066759c258c (diff) | |
download | sequelpro-e646d2046e879dba36deb20624bdaa5eb5d04257.tar.gz sequelpro-e646d2046e879dba36deb20624bdaa5eb5d04257.tar.bz2 sequelpro-e646d2046e879dba36deb20624bdaa5eb5d04257.zip |
Reset print settings, so we're not prompted about saving them
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TableDocument.m | 3 |
1 files changed, 3 insertions, 0 deletions
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]; |