aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-05-11 22:10:28 +0000
committerrowanbeentje <rowan@beent.je>2010-05-11 22:10:28 +0000
commit6c1dd42628da121538c8e155439206355e673e92 (patch)
tree3f61a172f7ef56a9c480c736b6725f8a8ebd860e /Source
parent505d972f02d0d31dcab6e4a60bf87f5afb464049 (diff)
downloadsequelpro-6c1dd42628da121538c8e155439206355e673e92.tar.gz
sequelpro-6c1dd42628da121538c8e155439206355e673e92.tar.bz2
sequelpro-6c1dd42628da121538c8e155439206355e673e92.zip
- Turn off app open panel setAllowMultipleSelection: changes, defaulting to NO. This disallows opening multiple .spfs at one time, but fixes file deselection on .sql/non-.sql changes and possible crashes (logs 235, 242, and 310)
- Fix label overlapping encoding menu in open panel accessory view, preventing half the menu from being clicked
Diffstat (limited to 'Source')
-rw-r--r--Source/SPAppController.m11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index f793b93c..69fcca80 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -125,10 +125,8 @@
if ([sender isKindOfClass:[NSOpenPanel class]]) {
if([[[[sender filename] pathExtension] lowercaseString] isEqualToString:@"sql"]) {
[encodingPopUp setEnabled:YES];
- [sender setAllowsMultipleSelection:NO];
} else {
[encodingPopUp setEnabled:NO];
- [sender setAllowsMultipleSelection:YES];
}
}
}
@@ -145,14 +143,11 @@
}
NSOpenPanel *panel = [NSOpenPanel openPanel];
- [panel setCanSelectHiddenExtension:YES];
[panel setDelegate:self];
+ [panel setCanSelectHiddenExtension:YES];
[panel setCanChooseDirectories:NO];
- [panel setAllowsMultipleSelection:YES];
- // TODO: it seems that setting setResolvesAliases to YES causes some
- // problems in dragging files to the panel and changing to directory could crash SP
- // ask Hans for details
- // [panel setResolvesAliases:YES];
+ [panel setAllowsMultipleSelection:NO];
+ [panel setResolvesAliases:YES];
// If no lastSqlFileEncoding in prefs set it to UTF-8
if(![[NSUserDefaults standardUserDefaults] integerForKey:SPLastSQLFileEncoding]) {