浏览代码

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 <fkuehne@videolan.org>
Alessio Pollero 9 年之前
父节点
当前提交
cb917373ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/VLCOpenNetworkStreamViewController.m

+ 1 - 1
Sources/VLCOpenNetworkStreamViewController.m

@@ -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];