Skip to content
Snippets Groups Projects
Commit a505b30c authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

account: fix create SIP account

After creating SIP account there was no way to hide account creation
window.

Change-Id: I147cd0981b3c05e7b0b94266ce02cc9a6006956c
parent 782ac77e
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#import "LrcModelsProtocol.h" #import "LrcModelsProtocol.h"
@protocol AddSIPAccountDelegate <NSObject> @protocol AddSIPAccountDelegate <NSObject>
- (void)didCreateAccountWithSuccess:(BOOL)success; - (void)completedWithSuccess:(BOOL)success;
- (void)showView:(NSView*)view; - (void)showView:(NSView*)view;
@end @end
......
...@@ -72,7 +72,7 @@ NSTimer* timeoutTimer; ...@@ -72,7 +72,7 @@ NSTimer* timeoutTimer;
- (IBAction)cancel:(id)sender - (IBAction)cancel:(id)sender
{ {
[self.delegate didCreateAccountWithSuccess: NO]; [self.delegate completedWithSuccess: NO];
} }
- (IBAction)addAccount:(id)sender - (IBAction)addAccount:(id)sender
...@@ -98,7 +98,7 @@ NSTimer* timeoutTimer; ...@@ -98,7 +98,7 @@ NSTimer* timeoutTimer;
} }
self.accountModel->setAccountConfig(accountID, accountProperties); self.accountModel->setAccountConfig(accountID, accountProperties);
QObject::disconnect(accountCreated); 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]); accountToCreate = self.accountModel->createNewAccount(lrc::api::profile::Type::SIP, [displayName UTF8String], "", "", "", [userNameField.stringValue UTF8String]);
...@@ -110,7 +110,7 @@ NSTimer* timeoutTimer; ...@@ -110,7 +110,7 @@ NSTimer* timeoutTimer;
-(void) addingAccountTimeout { -(void) addingAccountTimeout {
QObject::disconnect(accountCreated); QObject::disconnect(accountCreated);
[self.delegate didCreateAccountWithSuccess: YES]; [self.delegate completedWithSuccess: YES];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment