View Issue Details

IDProjectCategoryView StatusLast Update
0011299MMW v4Framework: Scripts/Extensionspublic2013-09-25 22:58
Reporterzvezdan Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version4.1Fixed in Version4.1 
Summary0011299: ISDBPlaylist::Delete doesn't remove node from the tree
DescriptionThe playlist node stays visible in the tree after the Delete method, and you could even add tracks to it, until you collapse/expand it parent node. Here is the code:

Option Explicit

Sub OnStartUp()
    Dim oMenuItem

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_Tree, 0, 0)
    oMenuItem.Caption = "Test Playlist.Delete"
    oMenuItem.OnClickFunc = "Test"
    oMenuItem.UseScript = Script.ScriptPath
End Sub

Sub Test(oMenuItem)
    Dim oPlaylist

    Set oPlaylist = SDB.PlaylistByTitle("").CreateChildPlaylist("Zvezdan " & Now)
    SDB.MessageBox oPlaylist.Title, mtInformation, Array(mbOK)
    oPlaylist.Delete
End Sub

It is not limited to Playlists as parent, the same problem exists even if the parent is some sub-playlist.

So, I need to collapse/expand the parent node in my script, but it is complicated to find out which is the Node object for a given Playlist object. It would be helpful if you add one new method, e.g. NodeByPlaylist, as I have suggested before (http://www.ventismedia.com/mantis/view.php?id=6711#c22483).
Steps To Reproduce- Copy to Auto folder and restart program;
- expand Playlists node;
- right-click on the tree;
- choose Test Playlist.Delete -> playlist is created;
- click OK -> node is still visible until you collapse/expand Playlists node.
TagsNo tags attached.
Fixed in build1660

Relationships

related to 0011300 new ISDBApplication::NodeByPlaylist method needed 
related to 0006711 closedLudek ISDBApplication::PlaylistByNode property needed 

Activities

Ludek

2013-09-23 14:34

developer   ~0037644

Fixed in build 1660.

zvezdan

2013-09-25 22:58

updater   ~0037679

Verified in 1661.