diff options
author | drx777 <david.rekowski@gmx.de> | 2010-04-29 15:54:10 +0000 |
---|---|---|
committer | drx777 <david.rekowski@gmx.de> | 2010-04-29 15:54:10 +0000 |
commit | 668556252773fab2051a10a2c976d52f123dfb10 (patch) | |
tree | a181c22e34c5f80219d30d0b1829fef063fa90f6 /Source/TableDocument.m | |
parent | 1484fe70be5f26bb02d462d400682837c5347f86 (diff) | |
download | sequelpro-668556252773fab2051a10a2c976d52f123dfb10.tar.gz sequelpro-668556252773fab2051a10a2c976d52f123dfb10.tar.bz2 sequelpro-668556252773fab2051a10a2c976d52f123dfb10.zip |
Duplicate/Rename DB: catch an unnecessary error message on canceling input sheet by checking the returnCode of the sheet.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 8 |
1 files changed, 6 insertions, 2 deletions
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"]) { |