Alexander Nicolaysen Sørnes : screenshot : Fix objectSetParent()
Alexander Nicolaysen Sørnes
asornes at winehq.org
Thu Jul 23 08:24:13 CDT 2009
Module: appdb
Branch: master
Commit: 62b1c7406db3f3a623379dfa8fb3bd7feab8050e
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=62b1c7406db3f3a623379dfa8fb3bd7feab8050e
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Thu Jul 23 15:23:49 2009 +0200
screenshot: Fix objectSetParent()
---
include/screenshot.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/screenshot.php b/include/screenshot.php
index 97e393c..2f542f5 100644
--- a/include/screenshot.php
+++ b/include/screenshot.php
@@ -302,8 +302,10 @@ class screenshot
public function objectSetParent($iNewId, $sClass = '')
{
- $oAppData = new appData($this->iScreenshotId, null, $this);
- return $oAppData->objectSetParent($iNewId, $sClass);
+ if($this->iVersionId)
+ $this->iVersionId = $iNewId;
+ else
+ $this->iAppId = $iNewId;
}
function objectGetChildren($bIncludeDeleted = false)
More information about the wine-cvs
mailing list