View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011299 | MMW v4 | Framework: Scripts/Extensions | public | 2013-09-19 12:07 | 2013-09-25 22:58 |
Reporter | zvezdan | Assigned To | |||
Priority | urgent | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 4.1 | Fixed in Version | 4.1 | ||
Summary | 0011299: ISDBPlaylist::Delete doesn't remove node from the tree | ||||
Description | The 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. | ||||
Tags | No tags attached. | ||||
Fixed in build | 1660 | ||||