aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-13 09:13:35 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-13 09:13:35 +0000
commit3205740f8679f3408a3d5e4246d943b74db80f47 (patch)
treec9ec9880384e70b677c8e1f0ccabb207096fc96f /Source/SPDatabaseDocument.m
parent3adfcf0898f78a8459aedd46be5e89ec906f0314 (diff)
downloadsequelpro-3205740f8679f3408a3d5e4246d943b74db80f47.tar.gz
sequelpro-3205740f8679f3408a3d5e4246d943b74db80f47.tar.bz2
sequelpro-3205740f8679f3408a3d5e4246d943b74db80f47.zip
• HTML output window
- a BASH script called via window.system.run() inherits the current shell vars and the associated SP_PROCESS_ID if set to make it easier to run sequelpro URL scheme commands from JavaScript via BASH - improved error handling
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 144f0710..7cea8eab 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -4816,6 +4816,9 @@
- (NSDictionary*)shellVariables
{
+
+ if(!_isConnected) return [NSDictionary dictionary];
+
NSMutableDictionary *env = [NSMutableDictionary dictionary];
if (tablesListInstance) {