aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
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/SPTableContent.m
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/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m10
1 files changed, 10 insertions, 0 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) {