aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-03-10 01:09:40 +0000
committerrowanbeentje <rowan@beent.je>2010-03-10 01:09:40 +0000
commit3635900e70976b376a112f086fbab1983504cce9 (patch)
tree24cb4e303d4096edafd6253832a682449775ca0c
parent8c523c30a25d3cfe8f64e4e22060839da79ce00e (diff)
downloadsequelpro-3635900e70976b376a112f086fbab1983504cce9.tar.gz
sequelpro-3635900e70976b376a112f086fbab1983504cce9.tar.bz2
sequelpro-3635900e70976b376a112f086fbab1983504cce9.zip
- If using an untitled connection (eg non-spf), default to saving queries to the global favourites list
-rw-r--r--Source/CustomQuery.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 9df31b8b..33285910 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -172,6 +172,7 @@
return;
}
+ if ([tableDocumentInstance isUntitled]) [saveQueryFavoriteGlobal setState:NSOnState];
[NSApp beginSheet:queryFavoritesSheet
modalForWindow:tableWindow
modalDelegate:self
@@ -189,6 +190,7 @@
return;
}
+ if ([tableDocumentInstance isUntitled]) [saveQueryFavoriteGlobal setState:NSOnState];
[NSApp beginSheet:queryFavoritesSheet
modalForWindow:tableWindow
modalDelegate:self