Slight reorg of last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e203535ff0
commit
247ca48fec
@ -699,26 +699,22 @@ OSStatus wxMacDataViewDataBrowserListViewControl::DataBrowserGetSetItemDataProc(
|
|||||||
// variable definition and initialization:
|
// variable definition and initialization:
|
||||||
wxVariant modifiedData(true);
|
wxVariant modifiedData(true);
|
||||||
|
|
||||||
if (dataViewCtrlPtr->GetModel()->SetValue(modifiedData, dvItem, col))
|
if (dataViewCtrlPtr->GetModel()->SetValue(modifiedData, dvItem, col) &&
|
||||||
{
|
dataViewCtrlPtr->GetModel()->ValueChanged(dvItem, col))
|
||||||
dataViewCtrlPtr->GetModel()->ValueChanged(dvItem, col);
|
|
||||||
return noErr;
|
return noErr;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
return errDataBrowserNotConfigured;
|
return errDataBrowserInvalidPropertyData;
|
||||||
} /* if */
|
} /* if */
|
||||||
else if (buttonValue == kThemeButtonOff)
|
else if (buttonValue == kThemeButtonOff)
|
||||||
{
|
{
|
||||||
// variable definition and initialization:
|
// variable definition and initialization:
|
||||||
wxVariant modifiedData(false);
|
wxVariant modifiedData(false);
|
||||||
|
|
||||||
if (dataViewCtrlPtr->GetModel()->SetValue(modifiedData, dvItem, col))
|
if (dataViewCtrlPtr->GetModel()->SetValue(modifiedData, dvItem, col) &&
|
||||||
{
|
dataViewCtrlPtr->GetModel()->ValueChanged(dvItem, col))
|
||||||
dataViewCtrlPtr->GetModel()->ValueChanged(dvItem, col);
|
|
||||||
return noErr;
|
return noErr;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
return errDataBrowserNotConfigured;
|
return errDataBrowserInvalidPropertyData;
|
||||||
} /* if */
|
} /* if */
|
||||||
else
|
else
|
||||||
return errDataBrowserInvalidPropertyData;
|
return errDataBrowserInvalidPropertyData;
|
||||||
@ -742,13 +738,11 @@ OSStatus wxMacDataViewDataBrowserListViewControl::DataBrowserGetSetItemDataProc(
|
|||||||
#endif
|
#endif
|
||||||
wxVariant modifiedData(modifiedString.AsString());
|
wxVariant modifiedData(modifiedString.AsString());
|
||||||
|
|
||||||
if (dataViewCtrlPtr->GetModel()->SetValue(modifiedData, dvItem, col))
|
if (dataViewCtrlPtr->GetModel()->SetValue(modifiedData, dvItem, col) &&
|
||||||
{
|
dataViewCtrlPtr->GetModel()->ValueChanged(dvItem, col))
|
||||||
dataViewCtrlPtr->GetModel()->ValueChanged(dvItem, col);
|
return noErr;
|
||||||
return noErr;
|
else
|
||||||
}
|
return errDataBrowserInvalidPropertyData;
|
||||||
else
|
|
||||||
return errDataBrowserNotConfigured;
|
|
||||||
} /* if */
|
} /* if */
|
||||||
else
|
else
|
||||||
return errorStatus;
|
return errorStatus;
|
||||||
|
Loading…
Reference in New Issue
Block a user