aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-19 09:55:45 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-19 09:55:45 +0000
commit3e18bc68b2ed5769722b82333bb8f84f22462202 (patch)
treefe782dccdd1fb957a99d1c0c26910c353ed308d9 /Source
parent43882565dbb5342c44ac0301a0393d922680be6b (diff)
downloadsequelpro-3e18bc68b2ed5769722b82333bb8f84f22462202.tar.gz
sequelpro-3e18bc68b2ed5769722b82333bb8f84f22462202.tar.bz2
sequelpro-3e18bc68b2ed5769722b82333bb8f84f22462202.zip
• fixed bug for Bundle input data selected text or entire content
Diffstat (limited to 'Source')
-rw-r--r--Source/SPBundleEditorController.h1
-rw-r--r--Source/SPTextViewAdditions.m3
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPBundleEditorController.h b/Source/SPBundleEditorController.h
index 81390824..d8c2d5df 100644
--- a/Source/SPBundleEditorController.h
+++ b/Source/SPBundleEditorController.h
@@ -61,7 +61,6 @@
IBOutlet NSMenuItem *revealInFinderMenuItem;
IBOutlet SRRecorderControl *keyEquivalentField;
IBOutlet NSButton *disabledCheckbox;
- IBOutlet NSView *bundleDataView;
IBOutlet NSScrollView *commandScrollView;
IBOutlet NSScrollView *descriptionScrollView;
IBOutlet BWAnchoredButtonBar *splitViewButtonBar;
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m
index 21811513..47263311 100644
--- a/Source/SPTextViewAdditions.m
+++ b/Source/SPTextViewAdditions.m
@@ -562,7 +562,7 @@
replaceRange = currentLineRange;
else if([inputFallBackAction isEqualToString:SPBundleInputSourceCurrentQuery])
replaceRange = currentQueryRange;
- else if([inputAction isEqualToString:SPBundleInputSourceEntireContent])
+ else if([inputFallBackAction isEqualToString:SPBundleInputSourceEntireContent])
replaceRange = NSMakeRange(0,[[self string] length]);
} else {
replaceRange = currentSelectionRange;
@@ -626,6 +626,7 @@
NSError *inputFileError = nil;
NSString *input = [NSString stringWithString:[[self string] substringWithRange:replaceRange]];
+
[input writeToFile:bundleInputFilePath
atomically:YES
encoding:NSUTF8StringEncoding