aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorStuart Connolly <stuart02@gmail.com>2014-08-28 19:08:14 +0100
committerStuart Connolly <stuart02@gmail.com>2014-08-28 19:08:14 +0100
commit310fb079c75d551bf2a129b69c897905ca83e061 (patch)
treeae163e957f6e43c49fef9014a96f8cab7b99cbfa /Source/SPTableContent.m
parente3c342d623b24a55215fadb3b7c72f80df303e83 (diff)
downloadsequelpro-310fb079c75d551bf2a129b69c897905ca83e061.tar.gz
sequelpro-310fb079c75d551bf2a129b69c897905ca83e061.tar.bz2
sequelpro-310fb079c75d551bf2a129b69c897905ca83e061.zip
Resolve #1938: In the query console display the database the query was executed in.
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 8e537178..dcf22d49 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -2956,13 +2956,17 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
[tableValues removeRowAtIndex:currentlyEditingRow];
[self updateCountText];
isEditingNewRow = NO;
- } else {
+ }
+ else {
[tableValues replaceRowAtIndex:currentlyEditingRow withRowContents:oldRow];
}
+
isEditingRow = NO;
currentlyEditingRow = -1;
[tableContentView reloadData];
- [[SPQueryController sharedQueryController] showErrorInConsole:NSLocalizedString(@"/* WARNING: No rows have been affected */\n", @"warning shown in the console when no rows have been affected after writing to the db") connection:[tableDocumentInstance name]];
+
+ [[SPQueryController sharedQueryController] showErrorInConsole:NSLocalizedString(@"/* WARNING: No rows have been affected */\n", @"warning shown in the console when no rows have been affected after writing to the db") connection:[tableDocumentInstance name] database:[tableDocumentInstance database]];
+
return YES;
// On success...