From 752fc266bb011ec18406311f2e6dc64b9612d333 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sat, 10 Apr 2010 18:50:23 +0000 Subject: =?UTF-8?q?=E2=80=A2=20Import=20from=20Clipboard=20-=20forgotten?= =?UTF-8?q?=20to=20remove=20the=20temp=20file=20after=20importSQL=20succes?= =?UTF-8?q?sfully?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableDump.m | 2 ++ 1 file changed, 2 insertions(+) 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]; -- cgit v1.2.3