diff options
author | Guillermo Ignacio Enriquez Gutierrez <ignacio@jp.ibm.com> | 2015-08-22 18:12:54 +0900 |
---|---|---|
committer | Guillermo Ignacio Enriquez Gutierrez <ignacio@jp.ibm.com> | 2015-08-22 18:12:54 +0900 |
commit | faa74fd74f4ce3fbaeff1dd1d3fc5b705ec7f09b (patch) | |
tree | 4ebe53db221cab510c1d939b653d0b0e2241c1c0 /Source/SPTableData.m | |
parent | cf83388bb64f10d815653382554f6e436b3bc161 (diff) | |
download | sequelpro-faa74fd74f4ce3fbaeff1dd1d3fc5b705ec7f09b.tar.gz sequelpro-faa74fd74f4ce3fbaeff1dd1d3fc5b705ec7f09b.tar.bz2 sequelpro-faa74fd74f4ce3fbaeff1dd1d3fc5b705ec7f09b.zip |
Added extra parameter to SPOnewayAlertSheet and runs runModal if no window was provided.
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r-- | Source/SPTableData.m | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m index 27dd4ea1..4ad3f028 100644 --- a/Source/SPTableData.m +++ b/Source/SPTableData.m @@ -492,7 +492,8 @@ NSLocalizedString(@"Error retrieving table information", @"error retrieving table information message"), nil, [NSApp mainWindow], - errorMessage + errorMessage, + NSWarningAlertStyle ); if (changeEncoding) [mySQLConnection restoreStoredEncoding]; @@ -517,7 +518,8 @@ NSLocalizedString(@"Permission Denied", @"Permission Denied"), nil, [NSApp mainWindow], - NSLocalizedString(@"The creation syntax could not be retrieved due to a permissions error.\n\nPlease check your user permissions with an administrator.", @"Create syntax permission denied detail") + NSLocalizedString(@"The creation syntax could not be retrieved due to a permissions error.\n\nPlease check your user permissions with an administrator.", @"Create syntax permission denied detail"), + NSWarningAlertStyle ); if (changeEncoding) [mySQLConnection restoreStoredEncoding]; @@ -849,7 +851,8 @@ NSLocalizedString(@"Error", @"error"), nil, [NSApp mainWindow], - [NSString stringWithFormat:NSLocalizedString(@"An error occurred while retrieving information.\nMySQL said: %@", @"message of panel when retrieving information failed"),[mySQLConnection lastErrorMessage]] + [NSString stringWithFormat:NSLocalizedString(@"An error occurred while retrieving information.\nMySQL said: %@", @"message of panel when retrieving information failed"),[mySQLConnection lastErrorMessage]], + NSWarningAlertStyle ); if (changeEncoding) [mySQLConnection restoreStoredEncoding]; } @@ -866,7 +869,8 @@ NSLocalizedString(@"Permission Denied", @"Permission Denied"), nil, [NSApp mainWindow], - NSLocalizedString(@"The creation syntax could not be retrieved due to a permissions error.\n\nPlease check your user permissions with an administrator.", @"Create syntax permission denied detail") + NSLocalizedString(@"The creation syntax could not be retrieved due to a permissions error.\n\nPlease check your user permissions with an administrator.", @"Create syntax permission denied detail"), + NSWarningAlertStyle ); if (changeEncoding) [mySQLConnection restoreStoredEncoding]; return nil; @@ -885,7 +889,8 @@ NSLocalizedString(@"Error", @"error"), nil, [NSApp mainWindow], - [NSString stringWithFormat:NSLocalizedString(@"An error occurred while retrieving information.\nMySQL said: %@", @"message of panel when retrieving information failed"), [mySQLConnection lastErrorMessage]] + [NSString stringWithFormat:NSLocalizedString(@"An error occurred while retrieving information.\nMySQL said: %@", @"message of panel when retrieving information failed"), [mySQLConnection lastErrorMessage]], + NSWarningAlertStyle ); if (changeEncoding) [mySQLConnection restoreStoredEncoding]; } @@ -996,7 +1001,8 @@ NSLocalizedString(@"Error", @"error"), nil, [NSApp mainWindow], - [NSString stringWithFormat:NSLocalizedString(@"An error occured while retrieving status data.\nMySQL said: %@", @"message of panel when retrieving view information failed"), [mySQLConnection lastErrorMessage]] + [NSString stringWithFormat:NSLocalizedString(@"An error occured while retrieving status data.\nMySQL said: %@", @"message of panel when retrieving view information failed"), [mySQLConnection lastErrorMessage]], + NSWarningAlertStyle ); if (changeEncoding) [mySQLConnection restoreStoredEncoding]; } @@ -1083,7 +1089,8 @@ NSLocalizedString(@"Error retrieving trigger information", @"error retrieving trigger information message"), nil, [NSApp mainWindow], - [NSString stringWithFormat:NSLocalizedString(@"An error occurred while retrieving the trigger information for table '%@'. Please try again.\n\nMySQL said: %@", @"error retrieving table information informative message"), [tableListInstance tableName], [mySQLConnection lastErrorMessage]] + [NSString stringWithFormat:NSLocalizedString(@"An error occurred while retrieving the trigger information for table '%@'. Please try again.\n\nMySQL said: %@", @"error retrieving table information informative message"), [tableListInstance tableName], [mySQLConnection lastErrorMessage]], + NSWarningAlertStyle ); if (triggers) SPClear(triggers); if (changeEncoding) [mySQLConnection restoreStoredEncoding]; |