aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m24
1 files changed, 11 insertions, 13 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index d6c17b5e..75e18ff3 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -2342,6 +2342,17 @@
}
/**
+ * Opens the export dialog on the SQL dump tab with the selected tables checked for export. If no tables
+ * are selected then all tables are checked.
+ */
+- (IBAction)export:(id)sender
+{
+ NSArray *tables = [tablesListInstance selectedTableItems];
+
+ [exportControllerInstance exportTables:([tables count]) ? tables : nil asFormat:SPSQLExport usingSource:SPTableExport];
+}
+
+/**
* Exports the selected tables in the chosen file format.
*/
- (IBAction)exportSelectedTablesAs:(id)sender
@@ -3436,19 +3447,6 @@
[tableDumpInstance importFromClipboard];
}
-/**
- * Passes the request to the dataImport object
- */
-- (IBAction)export:(id)sender
-{
- if ([sender tag] == -1) {
- [exportControllerInstance export];
- }
- else {
- [tableDumpInstance exportFile:[sender tag]];
- }
-}
-
- (IBAction)exportTable:(id)sender
{
return [self export:sender];