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
Branches
No related tags found
No related merge requests found
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
@interface AccGeneralVC () @interface AccGeneralVC ()
@property (assign) IBOutlet NSView *boxingAccount;
@property (assign) IBOutlet NSView *boxingParameters; @property (assign) IBOutlet NSView *boxingParameters;
@property (assign) IBOutlet NSView *boxingCommon; @property (assign) IBOutlet NSView *boxingCommon;
...@@ -53,7 +52,6 @@ ...@@ -53,7 +52,6 @@
@implementation AccGeneralVC @implementation AccGeneralVC
@synthesize typeLabel; @synthesize typeLabel;
@synthesize boxingAccount;
@synthesize boxingParameters; @synthesize boxingParameters;
@synthesize boxingCommon; @synthesize boxingCommon;
@synthesize aliasTextField; @synthesize aliasTextField;
...@@ -107,18 +105,6 @@ ...@@ -107,18 +105,6 @@
{ {
auto account = [self currentAccount]; auto account = [self currentAccount];
if([account->alias().toNSString() isEqualToString:@"IP2IP"]) {
[boxingAccount.subviews setValue:@YES forKeyPath:@"hidden"];
[boxingParameters.subviews setValue:@YES 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"]; [boxingParameters.subviews setValue:@NO forKeyPath:@"hidden"];
[self.aliasTextField setStringValue:account->alias().toNSString()]; [self.aliasTextField setStringValue:account->alias().toNSString()];
...@@ -126,7 +112,6 @@ ...@@ -126,7 +112,6 @@
[self.usernameTextField setStringValue:account->username().toNSString()]; [self.usernameTextField setStringValue:account->username().toNSString()];
[self.passwordTextField setStringValue:account->password().toNSString()]; [self.passwordTextField setStringValue:account->password().toNSString()];
[self.clearTextField setStringValue:account->password().toNSString()]; [self.clearTextField setStringValue:account->password().toNSString()];
}
switch (account->protocol()) { switch (account->protocol()) {
case Account::Protocol::SIP: case Account::Protocol::SIP:
......
...@@ -271,7 +271,6 @@ NSInteger const TAG_TYPE = 400; ...@@ -271,7 +271,6 @@ NSInteger const TAG_TYPE = 400;
[nameLabel setStringValue:account->alias().toNSString()]; [nameLabel setStringValue:account->alias().toNSString()];
[stateLabel setStringValue:humanState.toNSString()]; [stateLabel setStringValue:humanState.toNSString()];
[checkButton setHidden:AccountModel::instance().ip2ip()->index() == qIdx];
switch (account->protocol()) { switch (account->protocol()) {
case Account::Protocol::SIP: case Account::Protocol::SIP:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment