Commit a505b30c authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

account: fix create SIP account

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

Change-Id: I147cd0981b3c05e7b0b94266ce02cc9a6006956c
parent 782ac77e
......@@ -21,7 +21,7 @@
#import "LrcModelsProtocol.h"
@protocol AddSIPAccountDelegate <NSObject>
- (void)didCreateAccountWithSuccess:(BOOL)success;
- (void)completedWithSuccess:(BOOL)success;
- (void)showView:(NSView*)view;
@end
......
......@@ -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];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment