Treat an empty autosaveName as nil to fix problem with some nibs

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38884 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2015-08-14 20:51:12 +00:00
parent 81187ab15b
commit 6d5c72929a
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-08-14 Doug Simons <doug.simons@testplant.com>
* Source/NSSplitView.m: Treat an empty autosaveName as nil
(some nibs have empty name).
2015-07-16 Doug Simons <doug.simons@testplant.com>
* Source/NSSplitView.m: Add userInfo dictionary containing the

View file

@ -1053,6 +1053,8 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
- (void) setAutosaveName: (NSString *)autosaveName
{
if ([autosaveName length] == 0)
autosaveName = nil;
ASSIGN(_autosaveName, autosaveName);
}