diff --git a/src/AddSIPAccountVC.h b/src/AddSIPAccountVC.h index 5be1f8d9aeeb48f0d6901691aaa63b05c959da0c..402b4abc4e88182c29223c34be1f0c0b6a68dd3b 100644 --- a/src/AddSIPAccountVC.h +++ b/src/AddSIPAccountVC.h @@ -21,7 +21,7 @@ #import "LrcModelsProtocol.h" @protocol AddSIPAccountDelegate <NSObject> -- (void)didCreateAccountWithSuccess:(BOOL)success; +- (void)completedWithSuccess:(BOOL)success; - (void)showView:(NSView*)view; @end diff --git a/src/AddSIPAccountVC.mm b/src/AddSIPAccountVC.mm index ec5b4d07b4af45f98b7ec01c5fe9d63ae7ff91fc..a4bfce326ebd6064baa44788f3790ef3d1e11c0e 100644 --- a/src/AddSIPAccountVC.mm +++ b/src/AddSIPAccountVC.mm @@ -72,7 +72,7 @@ NSTimer* timeoutTimer; - (IBAction)cancel:(id)sender { - [self.delegate didCreateAccountWithSuccess: NO]; + [self.delegate completedWithSuccess: NO]; } - (IBAction)addAccount:(id)sender @@ -98,7 +98,7 @@ NSTimer* timeoutTimer; } self.accountModel->setAccountConfig(accountID, accountProperties); QObject::disconnect(accountCreated); - [self.delegate didCreateAccountWithSuccess: YES]; + [self.delegate completedWithSuccess: YES]; }); accountToCreate = self.accountModel->createNewAccount(lrc::api::profile::Type::SIP, [displayName UTF8String], "", "", "", [userNameField.stringValue UTF8String]); @@ -110,7 +110,7 @@ NSTimer* timeoutTimer; -(void) addingAccountTimeout { QObject::disconnect(accountCreated); - [self.delegate didCreateAccountWithSuccess: YES]; + [self.delegate completedWithSuccess: YES]; }