aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-11 23:09:28 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-11 23:09:28 +0000
commit2919229980e70fc6c367925ba2520b0e21c19b60 (patch)
tree329572a9f7467d79c47f45a554e5feb64567f249 /Source/SPConnectionController.m
parent876432a34ce9e99c45b16a2d42df5a0af8baec2c (diff)
downloadsequelpro-2919229980e70fc6c367925ba2520b0e21c19b60.tar.gz
sequelpro-2919229980e70fc6c367925ba2520b0e21c19b60.tar.bz2
sequelpro-2919229980e70fc6c367925ba2520b0e21c19b60.zip
Make the 'insufficient connection details' dialogs sheets.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 8299e024..6d55dbbd 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -150,13 +150,13 @@
{
// Ensure that host is not empty if this is a TCP/IP or SSH connection
if (([self type] == SP_CONNECTION_TCPIP || [self type] == SP_CONNECTION_SSHTUNNEL) && ![[self host] length]) {
- NSRunAlertPanel(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"Insufficient details provided to establish a connection. Please provide at least a host.", @"insufficient details informative message"), NSLocalizedString(@"OK", @"OK button"), nil, nil);
+ NSBeginAlertSheet(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, documentWindow, self, nil, nil, nil, NSLocalizedString(@"Insufficient details provided to establish a connection. Please enter at least the hostname.", @"insufficient details informative message"));
return;
}
// If SSH is enabled, ensure that the SSH host is not nil
if ([self type] == SP_CONNECTION_SSHTUNNEL && ![[self sshHost] length]) {
- NSRunAlertPanel(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"Please enter the hostname for the SSH Tunnel, or disable the SSH Tunnel.", @"message of panel when ssh details are incomplete"), NSLocalizedString(@"OK", @"OK button"), nil, nil);
+ NSBeginAlertSheet(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, documentWindow, self, nil, nil, nil, NSLocalizedString(@"Insufficient details provided to establish a connection. Please enter the hostname for the SSH Tunnel, or disable the SSH Tunnel.", @"insufficient SSH tunnel details informative message"));
return;
}