aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPStringAdditions.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-08 19:35:24 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-08 19:35:24 +0000
commiteb5fa28ec49e2aaecb5fd38c86f42a530498267b (patch)
treee126df57a28f444a4e98594c60cc545a80a1b2ba /Source/SPStringAdditions.m
parent5b88ac6a6d0c02b1b51f295cf79e84b61c1f1bd5 (diff)
downloadsequelpro-eb5fa28ec49e2aaecb5fd38c86f42a530498267b.tar.gz
sequelpro-eb5fa28ec49e2aaecb5fd38c86f42a530498267b.tar.bz2
sequelpro-eb5fa28ec49e2aaecb5fd38c86f42a530498267b.zip
• Bundle Editor: removed unnecessary tooltip; replace menu item title 'Save' by 'Export'
• improved check whether a doc window has a connection or not for running a Bundle command
Diffstat (limited to 'Source/SPStringAdditions.m')
-rw-r--r--Source/SPStringAdditions.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPStringAdditions.m b/Source/SPStringAdditions.m
index 97339201..012f365c 100644
--- a/Source/SPStringAdditions.m
+++ b/Source/SPStringAdditions.m
@@ -537,14 +537,14 @@
if([[[NSApp mainWindow] delegate] respondsToSelector:@selector(selectedTableDocument)])
doc = [[[NSApp mainWindow] delegate] selectedTableDocument];
// Check if connected
- if([[doc connectionID] isEqualToString:@"_"])
+ if([doc getConnection] == nil)
doc = nil;
else {
for (NSWindow *aWindow in [NSApp orderedWindows]) {
if([[[[aWindow windowController] class] description] isEqualToString:@"SPWindowController"]) {
if([[[aWindow windowController] documents] count] && [[[[[[aWindow windowController] documents] objectAtIndex:0] class] description] isEqualToString:@"SPDatabaseDocument"]) {
// Check if connected
- if(![[[[[aWindow windowController] documents] objectAtIndex:0] connectionID] isEqualToString:@"_"])
+ if([[[[aWindow windowController] documents] objectAtIndex:0] getConnection])
doc = [[[aWindow windowController] documents] objectAtIndex:0];
else
doc = nil;