aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r--Source/SPExportController.m13
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index d0cc34f9..bd72c9d2 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -32,10 +32,17 @@
-(void)export
{
- if ([NSBundle loadNibNamed:@"ExportDialog" owner:self]) {
- [self loadTables];
- [NSApp beginSheet:exportWindow modalForWindow:tableWindow modalDelegate:self didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) contextInfo:nil];
+ if (!exportWindow) {
+ [NSBundle loadNibNamed:@"ExportDialog" owner:self];
}
+
+ [self loadTables];
+
+ [NSApp beginSheet:exportWindow
+ modalForWindow:tableWindow
+ modalDelegate:self
+ didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:)
+ contextInfo:nil];
}
- (IBAction)closeSheet:(id)sender