Commit cb917373 authored by Alessio Pollero's avatar Alessio Pollero Committed by Felix Paul Kühne

Fix title not removed after removing a network stream source

After removing a stream from the Network Stream section there was a bug that
prevented the corresponding title from being removed and so the next time that a stream is inserted into the same position the app shows the previously set Title. This commit Fix the aforemention bug.
Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 44900bf7
......@@ -307,7 +307,7 @@
{
if (editingStyle == UITableViewCellEditingStyleDelete) {
[_recentURLs removeObjectAtIndex:indexPath.row];
[_recentURLTitles removeObjectForKey:@(indexPath.row)];
[_recentURLTitles removeObjectForKey:[@(indexPath.row) stringValue]];
[[NSUbiquitousKeyValueStore defaultStore] setArray:_recentURLs forKey:kVLCRecentURLs];
[[NSUbiquitousKeyValueStore defaultStore] setDictionary:_recentURLTitles forKey:kVLCRecentURLTitles];
[tableView reloadData];
......
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