mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 17:12:24 +00:00
Remove both instances where we get properties from the binding where it is not needed during the loading process, per discussion with @fredkiefer
This commit is contained in:
parent
854af0901e
commit
5d9e49a2ff
1 changed files with 3 additions and 13 deletions
|
@ -3326,16 +3326,11 @@ byExtendingSelection: (BOOL)flag
|
||||||
errorDescription: &error] == YES)
|
errorDescription: &error] == YES)
|
||||||
{
|
{
|
||||||
NSTableColumn *tb;
|
NSTableColumn *tb;
|
||||||
GSKeyValueBinding *theBinding = nil;
|
|
||||||
|
|
||||||
[_editedCell setObjectValue: newObjectValue];
|
[_editedCell setObjectValue: newObjectValue];
|
||||||
tb = [_tableColumns objectAtIndex: _editedColumn];
|
tb = [_tableColumns objectAtIndex: _editedColumn];
|
||||||
|
|
||||||
theBinding = [GSKeyValueBinding getBinding: NSValueBinding
|
if (_dataSource_editable)
|
||||||
forObject: tb];
|
|
||||||
|
|
||||||
if (_dataSource_editable
|
|
||||||
|| theBinding != nil)
|
|
||||||
{
|
{
|
||||||
[self _setObjectValue: newObjectValue
|
[self _setObjectValue: newObjectValue
|
||||||
forTableColumn: tb
|
forTableColumn: tb
|
||||||
|
@ -3366,18 +3361,13 @@ byExtendingSelection: (BOOL)flag
|
||||||
if (validatedOK)
|
if (validatedOK)
|
||||||
{
|
{
|
||||||
NSTableColumn *tb;
|
NSTableColumn *tb;
|
||||||
GSKeyValueBinding *theBinding = nil;
|
|
||||||
|
|
||||||
[_editedCell setStringValue: string];
|
[_editedCell setStringValue: string];
|
||||||
tb = [_tableColumns objectAtIndex: _editedColumn];
|
tb = [_tableColumns objectAtIndex: _editedColumn];
|
||||||
|
|
||||||
theBinding = [GSKeyValueBinding getBinding: NSValueBinding
|
if (_dataSource_editable)
|
||||||
forObject: tb];
|
|
||||||
|
|
||||||
if (_dataSource_editable
|
|
||||||
|| theBinding != nil)
|
|
||||||
{
|
{
|
||||||
[self _setObjectValue: string // newObjectValue
|
[self _setObjectValue: string
|
||||||
forTableColumn: tb
|
forTableColumn: tb
|
||||||
row: _editedRow];
|
row: _editedRow];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue