aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordmoagx <post@wickenrode.com>2012-07-25 15:33:57 +0000
committerdmoagx <post@wickenrode.com>2012-07-25 15:33:57 +0000
commit6deec9586fa0057e286f250b86d2e88c409c3181 (patch)
tree5e8d9e3e68b6c1393ace85af1b06ca610676e9d9
parent29d1b490e1dd9f1300cbdb07f2e204802ab6d5e1 (diff)
downloadsequelpro-6deec9586fa0057e286f250b86d2e88c409c3181.tar.gz
sequelpro-6deec9586fa0057e286f250b86d2e88c409c3181.tar.bz2
sequelpro-6deec9586fa0057e286f250b86d2e88c409c3181.zip
* Restore filter window functionality
-rw-r--r--Source/SPTableContent.m2
-rw-r--r--Source/SPTableContentDataSource.m2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index c99c8791..7cc7ffe3 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -4264,7 +4264,7 @@
numberOfValues = 0;
for(NSInteger anIndex=0; anIndex<numberOfCols; anIndex++) {
NSString *filterCell;
- NSDictionary *filterCellData = [NSDictionary dictionaryWithDictionary:[filterTableData objectForKey:[NSNumber numberWithInteger:anIndex]]];
+ NSDictionary *filterCellData = [NSDictionary dictionaryWithDictionary:[filterTableData objectForKey:[NSString stringWithFormat:@"%d",anIndex]]];
// Take filterTableData
if(currentValue == nil) {
diff --git a/Source/SPTableContentDataSource.m b/Source/SPTableContentDataSource.m
index 1ce9662f..484df453 100644
--- a/Source/SPTableContentDataSource.m
+++ b/Source/SPTableContentDataSource.m
@@ -47,7 +47,7 @@
{
#ifndef SP_REFACTOR
if (tableView == filterTableView) {
- return filterTableIsSwapped ? [filterTableData count] : [[[filterTableData objectForKey:[NSNumber numberWithInteger:0]] objectForKey:@"filter"] count];
+ return filterTableIsSwapped ? [filterTableData count] : [[[filterTableData objectForKey:@"0"] objectForKey:@"filter"] count];
}
else
#endif