aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-09-29 08:26:53 +0000
committerBibiko <bibiko@eva.mpg.de>2010-09-29 08:26:53 +0000
commit0275c3e833774f4a762ecd8587e26d9f7edcfc88 (patch)
tree8b76fb09e1d18283dff60d10364c7116c94b7da1 /Source
parent11eb3e017d203af40c13ac2ff10d0f42a805f0c3 (diff)
downloadsequelpro-0275c3e833774f4a762ecd8587e26d9f7edcfc88.tar.gz
sequelpro-0275c3e833774f4a762ecd8587e26d9f7edcfc88.tar.bz2
sequelpro-0275c3e833774f4a762ecd8587e26d9f7edcfc88.zip
• Filter Table
- fixed thread issue while loading a new table - fixed DBView.xib warnings
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableContent.m10
-rw-r--r--Source/SPTablesList.m3
2 files changed, 10 insertions, 3 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 73441466..26cdb96b 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -371,6 +371,14 @@
// Clear restoration settings
[self clearDetailsToRestore];
+ // Clear filter table
+ while ([[filterTableView tableColumns] count]) {
+ [filterTableView removeTableColumn:NSArrayObjectAtIndex([filterTableView tableColumns], 0)];
+ }
+ // Clear filter table data
+ [filterTableData removeAllObjects];
+ [filterTableWhereClause setString:@""];
+ activeFilter = 0;
return;
}
@@ -381,6 +389,7 @@
[tableContentView removeTableColumn:NSArrayObjectAtIndex([tableContentView tableColumns], 0)];
}
// Remove existing columns from the filter table
+ [filterTableView abortEditing];
while ([[filterTableView tableColumns] count]) {
[filterTableView removeTableColumn:NSArrayObjectAtIndex([filterTableView tableColumns], 0)];
}
@@ -504,6 +513,7 @@
[filterTableView setDelegate:self];
[filterTableView setDataSource:self];
+ [filterTableView reloadData];
// If the table has been reloaded and the previously selected sort column is still present, reselect it.
if (sortColumnNumberToRestore) {
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index c9192147..9f409e57 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -1516,9 +1516,6 @@
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification
{
- // Clear Content's Filter Table
- [tableContentInstance tableFilterClear:nil];
-
if([tablesListView selectedRow] < 0) {
// Reset all
if (selectedTableName) [selectedTableName release];