diff options
author | stuconnolly <stuart02@gmail.com> | 2009-11-13 12:18:47 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-11-13 12:18:47 +0000 |
commit | d6e9ec7664681c8a03fdbd96a38277abb99271f4 (patch) | |
tree | 6bdfcf956cf57d8f2afeba99ccb759cce4a925e7 /Source/TableDocument.m | |
parent | 53b268eece1c040b71a58bb7652e360263f4d3f0 (diff) | |
download | sequelpro-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.m | 8 |
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]; } |