aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPAppController.m')
-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]) {