mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
81187ab15b
commit
6d5c72929a
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue