Skip to content
Snippets Groups Projects
Commit 5c0803f4 authored by Alexandre Lision's avatar Alexandre Lision
Browse files

ip2ip: remove occurences to IP2IP

There is no dedicated IP2IP account anymore

Change-Id: Iddde102f063e7333b66d5a066a1c2c23393c4cde
Tuleap: #448
parent d2504559
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,6 @@
@interface AccGeneralVC ()
@property (assign) IBOutlet NSView *boxingAccount;
@property (assign) IBOutlet NSView *boxingParameters;
@property (assign) IBOutlet NSView *boxingCommon;
......@@ -53,7 +52,6 @@
@implementation AccGeneralVC
@synthesize typeLabel;
@synthesize boxingAccount;
@synthesize boxingParameters;
@synthesize boxingCommon;
@synthesize aliasTextField;
......@@ -107,26 +105,13 @@
{
auto account = [self currentAccount];
if([account->alias().toNSString() isEqualToString:@"IP2IP"]) {
[boxingAccount.subviews setValue:@YES forKeyPath:@"hidden"];
[boxingParameters.subviews setValue:@YES forKeyPath:@"hidden"];
[boxingParameters.subviews setValue:@NO forKeyPath:@"hidden"];
NSLog(@"IP@IP");
// Put visible items at top of the frame
[boxingCommon setFrameOrigin:NSMakePoint(boxingAccount.frame.origin.x,
boxingAccount.frame.origin.y - 40)];
[boxingCommon setNeedsDisplay:YES];
} else {
[boxingAccount.subviews setValue:@NO forKeyPath:@"hidden"];
[boxingParameters.subviews setValue:@NO forKeyPath:@"hidden"];
[self.aliasTextField setStringValue:account->alias().toNSString()];
[self.serverHostTextField setStringValue:account->hostname().toNSString()];
[self.usernameTextField setStringValue:account->username().toNSString()];
[self.passwordTextField setStringValue:account->password().toNSString()];
[self.clearTextField setStringValue:account->password().toNSString()];
}
[self.aliasTextField setStringValue:account->alias().toNSString()];
[self.serverHostTextField setStringValue:account->hostname().toNSString()];
[self.usernameTextField setStringValue:account->username().toNSString()];
[self.passwordTextField setStringValue:account->password().toNSString()];
[self.clearTextField setStringValue:account->password().toNSString()];
switch (account->protocol()) {
case Account::Protocol::SIP:
......
......@@ -271,7 +271,6 @@ NSInteger const TAG_TYPE = 400;
[nameLabel setStringValue:account->alias().toNSString()];
[stateLabel setStringValue:humanState.toNSString()];
[checkButton setHidden:AccountModel::instance().ip2ip()->index() == qIdx];
switch (account->protocol()) {
case Account::Protocol::SIP:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment