Commit c63d077d authored by bigben's avatar bigben
Browse files

* fixes item deletion when pressing backspace. Doesn't work for nodes yet

parent 50f6b0f6
......@@ -6,7 +6,6 @@
ACTIONS = {showPanel = id; };
CLASS = VLAboutBox;
LANGUAGE = ObjC;
OUTLETS = {};
SUPERCLASS = NSObject;
},
{CLASS = VLBrushedMetalImageView; LANGUAGE = ObjC; SUPERCLASS = NSImageView; },
......@@ -413,7 +412,7 @@
};
SUPERCLASS = NSObject;
},
{CLASS = VLCPlaylistView; LANGUAGE = ObjC; SUPERCLASS = NSTableView; },
{CLASS = VLCPlaylistView; LANGUAGE = ObjC; SUPERCLASS = NSOutlineView; },
{
ACTIONS = {advancedToggle = id; closePrefs = id; resetAll = id; savePrefs = id; };
CLASS = VLCPrefs;
......
......@@ -9,9 +9,9 @@
<key>1617</key>
<string>542 480 104 149 0 0 1024 746 </string>
<key>2197</key>
<string>102 199 596 368 0 0 800 578 </string>
<string>237 313 596 367 0 0 1024 746 </string>
<key>29</key>
<string>53 507 419 44 0 0 800 578 </string>
<string>84 667 419 44 0 0 1024 746 </string>
<key>915</key>
<string>54 452 185 199 0 0 1024 746 </string>
</dict>
......@@ -27,9 +27,9 @@
</array>
<key>IBOpenObjects</key>
<array>
<integer>2197</integer>
<integer>29</integer>
<integer>21</integer>
<integer>29</integer>
<integer>2197</integer>
</array>
<key>IBSystem Version</key>
<string>7R28</string>
......
......@@ -98,6 +98,7 @@ msg_Dbg( p_intf, "KEYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY");
c = [o_to_delete count];
for( i = 0; i < c; i++ ) {
playlist_item_t * p_item;
o_number = [o_to_delete lastObject];
i_row = [o_number intValue];
......@@ -107,7 +108,9 @@ msg_Dbg( p_intf, "KEYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY");
}
[o_to_delete removeObject: o_number];
[self deselectRow: i_row];
playlist_ItemDelete( [[self itemAtRow: i_row] pointerValue] );
p_item = (playlist_item_t *)[[self itemAtRow: i_row]pointerValue];
playlist_Delete( p_playlist, p_item->input.i_id );
[self reloadData];
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment