I have an app which builds song playlists.  There are left and right pane
containers with the left containing a qx.ui.tree.Tree() of all songs (titles
within albums within artists) and the right containing a qx.ui.form.List(). 
Creating a playlist involves dragging and dropping song titles from the tree
onto the list.  Starting with 4.0 I am having the following problem.  In the
"droprequest" event listener on the tree I check to see if the CurrentAction
is move, and if so I remove the selected TreeFile from its parent TreeFolder
with code similar to:

function(e) {
var sel = this.__musicTree.getSelection()[0];
...
if ("move" === e.getCurrentAction()) {
  var parent = sel.getParent();
  parent.remove(sel);
}
}

In 3.5, parent referenced the qx.ui.tree.TreeFolder(), but in 4.0 parent is
null.

Has something changed, was I doing something that I shouldn't have, is this
a bug?




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/qx-ui-tree-TreeFile-getParent-question-tp7585876.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to