mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 14:10:44 +00:00
Minor fix to correct exception raised when no row is selected.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@16882 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0d03f3958d
commit
c5e0ce6438
1 changed files with 8 additions and 3 deletions
|
@ -3449,10 +3449,15 @@ shouldEditTableColumn: (NSTableColumn *)tableColumn
|
|||
- (void) outlineViewSelectionDidChange: (NSNotification *)notification
|
||||
{
|
||||
id object = [notification object];
|
||||
id item = [object itemAtRow: [object selectedRow]];
|
||||
if (![item isKindOfClass: [GormOutletActionHolder class]])
|
||||
int row = [object selectedRow];
|
||||
|
||||
if(row != -1)
|
||||
{
|
||||
[self editClass: item];
|
||||
id item = [object itemAtRow: [object selectedRow]];
|
||||
if (![item isKindOfClass: [GormOutletActionHolder class]])
|
||||
{
|
||||
[self editClass: item];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue