Forráskód Böngészése

networkLogin : fix protocol identifier missing for saving or loading informations

Pierre SAGASPE 7 éve
szülő
commit
b3cb54ea79

+ 2 - 1
SharedSources/ServerBrowsing/General/VLCNetworkServerLoginInformation.m

@@ -66,8 +66,9 @@ static NSMutableDictionary<NSString *, VLCNetworkServerLoginInformation *> *VLCN
     VLCNetworkServerLoginInformation *loginInformation  = [VLCNetworkServerLoginInformationRegistry[protocolIdentifier] copy];
     if (!loginInformation) {
         loginInformation = [[VLCNetworkServerLoginInformation alloc] init];
+        loginInformation.protocolIdentifier = protocolIdentifier;
     }
     return loginInformation;
 }
 
-@end
+@end

+ 1 - 1
Sources/LocalNetworkConnectivity/VLCNetworkLoginDataSourceSavedLogins.m

@@ -115,7 +115,7 @@ static NSString *const VLCNetworkLoginSavedLoginCellIdentifier = @"VLCNetworkLog
     [ukvStore synchronize];
 
     // TODO: Vincent: add row directly instead of section reload
-    [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:self.sectionIndex] withRowAnimation:UITableViewRowAnimationAutomatic];;
+    [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:self.sectionIndex] withRowAnimation:UITableViewRowAnimationAutomatic];
 
     return success;
 }