From fcbf4d11a98dadf3433e627752624f4c677828ce Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Wed, 26 Sep 2001 21:58:51 +0000 Subject: [PATCH] Fix for saving the filename when writing to file git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11009 72102866-910b-0410-8b05-ffd578937521 --- Source/NSFileWrapper.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/NSFileWrapper.m b/Source/NSFileWrapper.m index f967ecc8e..3f3c4f5f4 100644 --- a/Source/NSFileWrapper.m +++ b/Source/NSFileWrapper.m @@ -218,8 +218,10 @@ } } if (success && updateFilenamesFlag) - [self setFilename: path]; - + { + [self setFilename: [path lastPathComponent]]; + } + return success; }