From 668556252773fab2051a10a2c976d52f123dfb10 Mon Sep 17 00:00:00 2001 From: drx777 Date: Thu, 29 Apr 2010 15:54:10 +0000 Subject: Duplicate/Rename DB: catch an unnecessary error message on canceling input sheet by checking the returnCode of the sheet. --- Source/TableDocument.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 6e0cac4c..724afca6 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1080,10 +1080,14 @@ } } else if ([contextInfo isEqualToString:@"copyDatabase"]) { - [self _copyDatabase]; + if (returnCode == NSOKButton) { + [self _copyDatabase]; + } } else if ([contextInfo isEqualToString:@"renameDatabase"]) { - [self _renameDatabase]; + if (returnCode == NSOKButton) { + [self _renameDatabase]; + } } // Close error status sheet for OPTIMIZE, CHECK, REPAIR etc. else if ([contextInfo isEqualToString:@"statusError"]) { -- cgit v1.2.3