Correction for bug#15987

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@22595 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-03-05 00:46:42 +00:00
parent b434b37722
commit 33c6e0ce88
2 changed files with 6 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2006-03-04 19:44 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/3Containers/GormTableViewEditor.m: Correction for
bug#15987.
2006-02-22 22:52 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Overide arrangeInFront: so that when testing the interface

View file

@ -135,14 +135,8 @@ static NSText *_textObject;
{
NSDebugLog(@"no column to delete");
}
else
if ([tableView numberOfColumns] <= 1)
else if([[selection objectAtIndex: 0] isKindOfClass: [NSTableColumn class]])
{
NSDebugLog(@"can't delete last column");
}
else
{
NSDebugLog(@"FIXME: remove the tableColumn from toplevel"); // FIXME
[tableView removeTableColumn: [selection objectAtIndex: 0]];
[tableView deselectAll: self];
[self selectObjects: [NSArray array]];