From a505b30c1a06651bb323c7194a021d3c9e1220ea Mon Sep 17 00:00:00 2001 From: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com> Date: Mon, 2 Dec 2019 16:20:37 -0500 Subject: [PATCH] account: fix create SIP account After creating SIP account there was no way to hide account creation window. Change-Id: I147cd0981b3c05e7b0b94266ce02cc9a6006956c --- src/AddSIPAccountVC.h | 2 +- src/AddSIPAccountVC.mm | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AddSIPAccountVC.h b/src/AddSIPAccountVC.h index 5be1f8d9..402b4abc 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 ec5b4d07..a4bfce32 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]; } -- GitLab