[GB.QT4.WEBKIT]
* BUG: WebElement.FindAll() method correctly builds the returned array. git-svn-id: svn://localhost/gambas/trunk@6419 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
b06f03e69f
commit
e018791f2d
1 changed files with 3 additions and 1 deletions
|
@ -41,8 +41,8 @@ CWEBELEMENT *CWEBELEMENT_create(const QWebElement &elt)
|
|||
return NULL;
|
||||
|
||||
_object = GB.New(GB.FindClass("WebElement"), 0, 0);
|
||||
//qDebug("create WebFrame %p", _object);
|
||||
ELT = new QWebElement(elt);
|
||||
//qDebug("create WebElement %p / %p (%ld)", THIS, ELT, THIS->ob.ref);
|
||||
return THIS;
|
||||
}
|
||||
|
||||
|
@ -61,6 +61,7 @@ END_METHOD*/
|
|||
|
||||
BEGIN_METHOD_VOID(WebElement_free)
|
||||
|
||||
//qDebug("WebElement_free: %p / %p", THIS, ELT);
|
||||
delete ELT;
|
||||
|
||||
END_METHOD
|
||||
|
@ -162,6 +163,7 @@ BEGIN_METHOD(WebElement_FindAll, GB_STRING selector)
|
|||
for (i = 0; i < result.count(); i++)
|
||||
{
|
||||
elt = CWEBELEMENT_create(result.at(i));
|
||||
GB.Ref(elt);
|
||||
*((CWEBELEMENT **)GB.Array.Get(array, i)) = elt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue