aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-04-10 18:50:23 +0000
committerBibiko <bibiko@eva.mpg.de>2010-04-10 18:50:23 +0000
commit752fc266bb011ec18406311f2e6dc64b9612d333 (patch)
treeafa570b61b4100490db1fc00ba56aaed3a2db122
parent1bf7220ca576a3c09b9d9e53e24e0c6f30f15850 (diff)
downloadsequelpro-752fc266bb011ec18406311f2e6dc64b9612d333.tar.gz
sequelpro-752fc266bb011ec18406311f2e6dc64b9612d333.tar.bz2
sequelpro-752fc266bb011ec18406311f2e6dc64b9612d333.zip
• Import from Clipboard
- forgotten to remove the temp file after importSQL successfully
-rw-r--r--Source/TableDump.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m
index 3021f3c4..983d7b6d 100644
--- a/Source/TableDump.m
+++ b/Source/TableDump.m
@@ -791,6 +791,8 @@
[sqlDataBuffer release];
[importPool drain];
[tableDocumentInstance setQueryMode:SPInterfaceQueryMode];
+ if([filename hasPrefix:SPImportClipboardTempFileNamePrefix])
+ [[NSFileManager defaultManager] removeItemAtPath:filename error:nil];
// Close progress sheet
[self closeAndStopProgressSheet];