aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authordrx777 <david.rekowski@gmx.de>2010-04-29 15:54:10 +0000
committerdrx777 <david.rekowski@gmx.de>2010-04-29 15:54:10 +0000
commit668556252773fab2051a10a2c976d52f123dfb10 (patch)
treea181c22e34c5f80219d30d0b1829fef063fa90f6 /Source/TableDocument.m
parent1484fe70be5f26bb02d462d400682837c5347f86 (diff)
downloadsequelpro-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.m8
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"]) {