diff --git a/Monal/Classes/XMPPEdit.h b/Monal/Classes/XMPPEdit.h index e0ac748494..cab1954793 100644 --- a/Monal/Classes/XMPPEdit.h +++ b/Monal/Classes/XMPPEdit.h @@ -19,7 +19,6 @@ @property (nonatomic, strong) NSNumber* accountNo; @property (nonatomic, strong) NSIndexPath* originIndex; --(IBAction) save:(id) sender; @end diff --git a/Monal/Classes/XMPPEdit.m b/Monal/Classes/XMPPEdit.m index 308a4d86aa..28aa6d77ea 100644 --- a/Monal/Classes/XMPPEdit.m +++ b/Monal/Classes/XMPPEdit.m @@ -245,6 +245,7 @@ -(void) viewWillDisappear:(BOOL) animated { [super viewWillDisappear:animated]; DDLogVerbose(@"xmpp edit view will hide"); + [self saveSettings]; } -(void) dealloc @@ -265,7 +266,8 @@ -(void) alertWithTitle:(NSString*) title andMsg:(NSString*) msg #pragma mark actions --(IBAction) save:(id) sender + +-(void) saveSettings { if(self.deactivateSave) { diff --git a/Monal/localization/Base.lproj/Settings.storyboard b/Monal/localization/Base.lproj/Settings.storyboard index 091283cf0a..89d806b567 100644 --- a/Monal/localization/Base.lproj/Settings.storyboard +++ b/Monal/localization/Base.lproj/Settings.storyboard @@ -149,13 +149,7 @@ - - - - - - - +