From 9e2345bcd779af3d1942a5cb97b405eefc50ed18 Mon Sep 17 00:00:00 2001 From: michael starke Date: Tue, 26 Aug 2014 12:00:53 +0200 Subject: [PATCH] Encryption rounds are now stored when settings are saved (fixes #228) --- MacPass/MPDatabaseSettingsWindowController.m | 2 ++ MacPass/MPOutlineViewController.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MacPass/MPDatabaseSettingsWindowController.m b/MacPass/MPDatabaseSettingsWindowController.m index abe67d24..59cea748 100644 --- a/MacPass/MPDatabaseSettingsWindowController.m +++ b/MacPass/MPDatabaseSettingsWindowController.m @@ -153,6 +153,8 @@ void _MPSetState(id stateItem, BOOL isOn) { [defaults setBool:protectUsername forKey:kMPSettingsKeyLegacyHideUsername]; [defaults synchronize]; */ + + metaData.rounds = MAX(0,[self.encryptionRoundsTextField integerValue]); [self close:nil]; } diff --git a/MacPass/MPOutlineViewController.h b/MacPass/MPOutlineViewController.h index 4d38e6b5..04fb8a11 100644 --- a/MacPass/MPOutlineViewController.h +++ b/MacPass/MPOutlineViewController.h @@ -10,7 +10,6 @@ APPKIT_EXTERN NSString *const MPOutlineViewDidChangeGroupSelection; -@class MPOutlineViewDelegate; @class HNHGradientView; @class MPDocument;