aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-13 12:18:47 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-13 12:18:47 +0000
commitd6e9ec7664681c8a03fdbd96a38277abb99271f4 (patch)
tree6bdfcf956cf57d8f2afeba99ccb759cce4a925e7 /Source/TableDocument.m
parent53b268eece1c040b71a58bb7652e360263f4d3f0 (diff)
downloadsequelpro-d6e9ec7664681c8a03fdbd96a38277abb99271f4.tar.gz
sequelpro-d6e9ec7664681c8a03fdbd96a38277abb99271f4.tar.bz2
sequelpro-d6e9ec7664681c8a03fdbd96a38277abb99271f4.zip
Move query mode constants to SPConstants.h.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 6e3c91ca..65c8afd6 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -77,7 +77,7 @@
_isConnected = NO;
_isWorkingLevel = 0;
databaseListIsSelectable = YES;
- _queryMode = SP_QUERYMODE_INTERFACE;
+ _queryMode = SPInterfaceQueryMode;
chooseDatabaseButton = nil;
chooseDatabaseToolbarItem = nil;
connectionController = nil;
@@ -3435,9 +3435,9 @@
- (void)willQueryString:(NSString *)query connection:(id)connection
{
if ([prefs boolForKey:SPConsoleEnableLogging]) {
- if ((_queryMode == SP_QUERYMODE_INTERFACE && [prefs boolForKey:SPConsoleEnableInterfaceLogging])
- || (_queryMode == SP_QUERYMODE_CUSTOMQUERY && [prefs boolForKey:SPConsoleEnableCustomQueryLogging])
- || (_queryMode == SP_QUERYMODE_IMPORTEXPORT && [prefs boolForKey:SPConsoleEnableImportExportLogging]))
+ if ((_queryMode == SPInterfaceQueryMode && [prefs boolForKey:SPConsoleEnableInterfaceLogging])
+ || (_queryMode == SPCustomQueryQueryMode && [prefs boolForKey:SPConsoleEnableCustomQueryLogging])
+ || (_queryMode == SPImportExportQueryMode && [prefs boolForKey:SPConsoleEnableImportExportLogging]))
{
[[SPQueryController sharedQueryController] showMessageInConsole:query];
}