Commit c63d077d authored by Benjamin Pracht's avatar Benjamin Pracht

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

parent 50f6b0f6
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
ACTIONS = {showPanel = id; }; ACTIONS = {showPanel = id; };
CLASS = VLAboutBox; CLASS = VLAboutBox;
LANGUAGE = ObjC; LANGUAGE = ObjC;
OUTLETS = {};
SUPERCLASS = NSObject; SUPERCLASS = NSObject;
}, },
{CLASS = VLBrushedMetalImageView; LANGUAGE = ObjC; SUPERCLASS = NSImageView; }, {CLASS = VLBrushedMetalImageView; LANGUAGE = ObjC; SUPERCLASS = NSImageView; },
...@@ -413,7 +412,7 @@ ...@@ -413,7 +412,7 @@
}; };
SUPERCLASS = NSObject; SUPERCLASS = NSObject;
}, },
{CLASS = VLCPlaylistView; LANGUAGE = ObjC; SUPERCLASS = NSTableView; }, {CLASS = VLCPlaylistView; LANGUAGE = ObjC; SUPERCLASS = NSOutlineView; },
{ {
ACTIONS = {advancedToggle = id; closePrefs = id; resetAll = id; savePrefs = id; }; ACTIONS = {advancedToggle = id; closePrefs = id; resetAll = id; savePrefs = id; };
CLASS = VLCPrefs; CLASS = VLCPrefs;
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
<key>1617</key> <key>1617</key>
<string>542 480 104 149 0 0 1024 746 </string> <string>542 480 104 149 0 0 1024 746 </string>
<key>2197</key> <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> <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> <key>915</key>
<string>54 452 185 199 0 0 1024 746 </string> <string>54 452 185 199 0 0 1024 746 </string>
</dict> </dict>
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
</array> </array>
<key>IBOpenObjects</key> <key>IBOpenObjects</key>
<array> <array>
<integer>2197</integer>
<integer>29</integer>
<integer>21</integer> <integer>21</integer>
<integer>29</integer>
<integer>2197</integer>
</array> </array>
<key>IBSystem Version</key> <key>IBSystem Version</key>
<string>7R28</string> <string>7R28</string>
......
...@@ -98,6 +98,7 @@ msg_Dbg( p_intf, "KEYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"); ...@@ -98,6 +98,7 @@ msg_Dbg( p_intf, "KEYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY");
c = [o_to_delete count]; c = [o_to_delete count];
for( i = 0; i < c; i++ ) { for( i = 0; i < c; i++ ) {
playlist_item_t * p_item;
o_number = [o_to_delete lastObject]; o_number = [o_to_delete lastObject];
i_row = [o_number intValue]; i_row = [o_number intValue];
...@@ -107,7 +108,9 @@ msg_Dbg( p_intf, "KEYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"); ...@@ -107,7 +108,9 @@ msg_Dbg( p_intf, "KEYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY");
} }
[o_to_delete removeObject: o_number]; [o_to_delete removeObject: o_number];
[self deselectRow: i_row]; [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; 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