Add code to address bug #33457. Menu title change should not cause document to be marked as modified.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@34223 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2011-11-28 03:33:49 +00:00
parent 21c67d28a2
commit 6773d49622
2 changed files with 5 additions and 0 deletions

View file

@ -160,7 +160,9 @@
/* delegate method used for menu title */
- (void)controlTextDidChange:(NSNotification *)aNotification
{
GormDocument *doc = (GormDocument *)[(id<IB>)NSApp activeDocument];
[object setTitle: [titleText stringValue]];
[doc touch];
}
@end

View file

@ -43,7 +43,10 @@
- (void)controlTextDidChange:(NSNotification *)aNotification
{
id<IBDocuments> doc = [(id<IB>)NSApp activeDocument];
[object setTitle: [titleText stringValue]];
[doc touch];
}
- (id) init