From e552c725f81d360c637e762869a1d57cdb29d1b0 Mon Sep 17 00:00:00 2001 From: michael starke Date: Sat, 13 Dec 2014 16:13:30 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20#289.=20Pressing=20ALT=20now=20toggles?= =?UTF-8?q?=20between=20Save=20as=E2=80=A6=20and=20Save=20a=20Copy?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MacPass/Base.lproj/MainMenu.xib | 10 ++++++++-- MacPass/MPDocument.m | 6 ++++++ MacPass/de.lproj/MainMenu.strings | 4 ++-- MacPass/en.lproj/MainMenu.strings | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/MacPass/Base.lproj/MainMenu.xib b/MacPass/Base.lproj/MainMenu.xib index 7d032e7b..4aa05e8f 100644 --- a/MacPass/Base.lproj/MainMenu.xib +++ b/MacPass/Base.lproj/MainMenu.xib @@ -1,8 +1,8 @@ - + - + @@ -144,6 +144,12 @@ + + + + + + diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index 24934f05..8b23da17 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -143,6 +143,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey } - (void)saveDocumentAs:(id)sender { + /* take a look at NSEditor Protocoll commitEding, as NSDocument supports that */ [[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentWillSaveNotification object:self]; [super saveDocumentAs:sender]; } @@ -152,6 +153,11 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey [super saveDocument:sender]; } +- (void)saveDocumentTo:(id)sender { + [[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentWillSaveNotification object:self]; + [super saveDocumentTo:sender]; +} + - (void)windowControllerDidLoadNib:(NSWindowController *)aController { [super windowControllerDidLoadNib:aController]; diff --git a/MacPass/de.lproj/MainMenu.strings b/MacPass/de.lproj/MainMenu.strings index 86f63d82..d75f24ef 100644 --- a/MacPass/de.lproj/MainMenu.strings +++ b/MacPass/de.lproj/MainMenu.strings @@ -132,10 +132,10 @@ "1181.title" = "Inspector ein/ausblenden"; /* Class = "NSMenuItem"; title = "Show Password Creator"; ObjectID = "1200"; */ -"1200.title" = "Passwortwerkzeug anzeigen"; +"1200.title" = "Passwortgenerator anzeigen"; /* Class = "NSMenuItem"; title = "Change Master Password…"; ObjectID = "1203"; */ -"1203.title" = "Hauptpassword ändern …"; +"1203.title" = "Datenbankpassword ändern …"; /* Class = "NSMenuItem"; title = "Database Settings…"; ObjectID = "1231"; */ "1231.title" = "Datenbankeinstellungen …"; diff --git a/MacPass/en.lproj/MainMenu.strings b/MacPass/en.lproj/MainMenu.strings index 850adee4..c61e7cb4 100644 --- a/MacPass/en.lproj/MainMenu.strings +++ b/MacPass/en.lproj/MainMenu.strings @@ -132,7 +132,7 @@ "1181.title" = "Toggle Inspector"; /* Class = "NSMenuItem"; title = "Show Password Creator"; ObjectID = "1200"; */ -"1200.title" = "Show Password Creator"; +"1200.title" = "Show Password Generator"; /* Class = "NSMenuItem"; title = "Change Master Password…"; ObjectID = "1203"; */ "1203.title" = "Change Master Password…";