diff options
author | rowanbeentje <rowan@beent.je> | 2012-10-08 21:56:12 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-10-08 21:56:12 +0000 |
commit | 13f38b3466737b4794b7f8af882290b692eef497 (patch) | |
tree | 8eea72f3bfb9d14b81254e9b62ccd66a5b91b41b /Source | |
parent | c55ffebc406d7d2af3c71b2dace3ec7e3238fd55 (diff) | |
download | sequelpro-13f38b3466737b4794b7f8af882290b692eef497.tar.gz sequelpro-13f38b3466737b4794b7f8af882290b692eef497.tar.bz2 sequelpro-13f38b3466737b4794b7f8af882290b692eef497.zip |
- Connection interface: if the name of a node is being edited in the sidebar, don't start editing in the main interface
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m index eee6f44d..96414cc0 100644 --- a/Source/SPConnectionControllerDelegate.m +++ b/Source/SPConnectionControllerDelegate.m @@ -430,6 +430,11 @@ static NSString *SPQuickConnectImageWhite = @"quick-connect-icon-white.pdf"; { id field = [notification object]; + // Ignore changes in the outline view edit fields + if ([field isKindOfClass:[NSOutlineView class]]) { + return; + } + // If a 'name' field was edited, and is now of zero length, trigger a replacement // with a standard suggestion if (((field == standardNameField) || (field == socketNameField) || (field == sshNameField)) && [self selectedFavoriteNode]) { |