aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorbamse16 <marius@marius.me.uk>2009-03-26 14:01:54 +0000
committerbamse16 <marius@marius.me.uk>2009-03-26 14:01:54 +0000
commite646d2046e879dba36deb20624bdaa5eb5d04257 (patch)
tree9e892588b5853013a33791d6c093a297f80151c5 /Source/TableDocument.m
parentdcf2748abe446d6fcb0e0e622502f066759c258c (diff)
downloadsequelpro-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/TableDocument.m')
-rw-r--r--Source/TableDocument.m3
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];